Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove prefixes for grab and grabbing cursor values. #2629

Merged
merged 4 commits into from
Jan 28, 2019

Conversation

nchevobbe
Copy link
Contributor

Those prefixes are not needed in the latest version of Chrome
and Safari, so we can safely remove them.

Fixes #2618.

Those prefixes are not needed in the latest version of Chrome
and Safari, so we can safely remove them.

Fixes visgl#2618.
@CLAassistant
Copy link

CLAassistant commented Jan 25, 2019

CLA assistant check
All committers have signed the CLA.

@nchevobbe
Copy link
Contributor Author

Everything looks cool. Could someone review these changes?

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks great.

Note to self: We really should get rid of the double definition of cursors, a bit embarrassing that you had to chase that down.

We may not even need the lookup at this point (unless we want to start using e.g. custom dataUrl cursors), so maybe just use the CSS names directly in the code, then we don't have to figure out how to make these definitions available in two modules without adding extra exports.

@@ -31,17 +31,14 @@ import {Stats} from 'probe.gl';
import {EventManager} from 'mjolnir.js';

import assert from '../utils/assert';
import VENDOR_PREFIX from '../utils/css-vendor-prefix';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this file can be safely removed.

@@ -18,15 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// import browser from 'bowser';

const PREFIX = '-webkit-';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this file being imported anywhere. Just remove?

It's not used anywhere anymore, so it's safe to remove it.
We also remove its test file.
@nchevobbe
Copy link
Contributor Author

Thanks for the reviews. I deleted all unused file, inlined grab and grabbing in the only place it was used, and removed the CURSOR object which has no use (POINTER was not used anywhere).

@Pessimistress Pessimistress merged commit 806f053 into visgl:master Jan 28, 2019
@nchevobbe nchevobbe deleted the grab-prefix branch January 29, 2019 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loop of CSS Warnings about cursor in Firefox
4 participants