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

Unable to preventDefault inside passive event listener due to target being treated as passive #18

Open
Gummibeer opened this issue Oct 19, 2020 · 1 comment

Comments

@Gummibeer
Copy link

The e.preventDefault() in RangeSlider._handleMove() throws an error on mobile devices chrome.

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

So far I can see it the logic still works but it's thrown every move in the browser console. Don't know if it somewhen will possibly throw a real error and break the code. So I think that it should be solved somehow.

On 20 May 2019 in #11 you've said that it should be fixed in latest release but I haven't found any commit in the history that has adjusted the named method since 4 years. 🧐

@Munneson
Copy link

I was able to fix this error-message by setting CSS touch-action:none for the slider-handle:
.range-slider-track .dragger { touch-action: none; }

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

No branches or pull requests

2 participants