-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make touch events passive like mouse events #4279
Conversation
Prevent console messages like: [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 See also: https://github.com/playcanvas/engine/blob/9a0697c6b2cd521db510df49f90028f414006696/src/input/element-input.js#L421-L426
The mouse module sets the third parameter of |
PR might need to change calls to removeEventListener
That's giving me linting errors as |
Ah yeah, you're right. I just read this: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener |
I would keep the |
OK, sounds good. 😄 |
This reverts commit 1ebfd36.
This reverts commit 1ebfd36.
Prevent console messages like:
See also:
engine/src/input/element-input.js
Lines 421 to 426 in 9a0697c
I confirm I have read the contributing guidelines and signed the Contributor License Agreement.