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
Console warning when using touch events #1790
Comments
+1 |
I have just found out that adding
|
|
Still an issue, waiting for an "approved for development" tag on the issue to raise the PR |
@keefyhub I went ahead and put in the change myself, didn't want to bother you further. Thank you for your contribution! |
Can confirm. adding |
Working fine, Thanks @keefyhub |
Example: link
Open dev tools and toggle device toolbar, activate a touch event by dragging the carousel item. Observe the following console warning:
Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
Looks like a change in touch event listeners in Chrome - https://developers.google.com/web/updates/2017/01/scrolling-intervention
Possible solution at the bottom of the article:
Developers should apply the touch-action CSS property on elements where scrolling and zooming should be disabled to notify the browser before any touch events occur.
Adding:
NOTE - see comment below, dont use
touch-action: none;
to the CSS seems to solve the warning, but I am not sure what effect this property has.
link to CSS property summary
The text was updated successfully, but these errors were encountered: