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

many errors in console #21

Closed
oleksandr-dukhovnyy opened this issue Feb 7, 2021 · 1 comment
Closed

many errors in console #21

oleksandr-dukhovnyy opened this issue Feb 7, 2021 · 1 comment

Comments

@oleksandr-dukhovnyy
Copy link

Found a bug while using. When (for example, a menu) is scrolled to the maximum, but the user continues to drag his finger, then a large number of errors of the form start to appear in the console:
"[Intervention] Ignored attempt to cancel a touchmove event with cancelable = false, for example because scrolling is in progress and cannot be interrupted."
The solution is very simple by adding one condition before e.PreventDefault()

if (e.cancelable) { e.preventDefault(); }

@FL3NKEY
Copy link
Owner

FL3NKEY commented Feb 8, 2021

#22

https://www.npmjs.com/package/scroll-lock/v/2.1.5

@FL3NKEY FL3NKEY closed this as completed Feb 8, 2021
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