-
Notifications
You must be signed in to change notification settings - Fork 47k
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
support for event.movementX/Y [feature-request] #6723
Comments
oh .nativeEvent sorry |
Sounds like Firefox, Chrome, and Edge all support it. We might as well too though I don't know if it's worth polyfilling. |
If we add something to the synthetic event object, it needs to be available in all browsers. |
Does the synthetic event system have a way to access the previous instance of an event? Since |
I'm always a bit weary when polyfilling things that require rather non-trivial logic as opposed to just interpolating some data. Case in point; to do this I can only assume we would be required to have a permanent global mouse move listener which tracks the last X/Y value, this feels bad (EDIT: There was a lot of fuss to get rid of the ViewportMetrics listener). There's potential for issues here, an event being stopped, event order (or is it just for mousemove?), unnecessary global mouse move listener, etc. |
It should be just for |
I've added a new PR for this |
Closed, with #9018. Thanks again, @jasonwilliams! |
currently it seems synthetic events don't have those properties on mousemove
The text was updated successfully, but these errors were encountered: