-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
Those prefixes are not needed in the latest version of Chrome and Safari, so we can safely remove them. Fixes visgl#2618.
Everything looks cool. Could someone review these changes? |
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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-'; |
There was a problem hiding this comment.
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.
Thanks for the reviews. I deleted all unused file, inlined |
Those prefixes are not needed in the latest version of Chrome
and Safari, so we can safely remove them.
Fixes #2618.