I'm facing this error with react-use-gesture

609 Views Asked by At

sometimes this error gets thrown and it blocks the gestures :

315[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
2

There are 2 best solutions below

0
David B. On BEST ANSWER

The docs mention this: https://use-gesture.netlify.app/docs/faq/#why-am-i-getting-warnings-from-preventdefault-after-i-pass-passivefalse

The lib does internal checks whether events are cancelable, but there’s no way it could prevent the user from performing its own logic.

3
Filipe Prado On

verify if you are using something to prevent some action to happen like:

event.preventDefault();

and make some verification first

if (event.cancelable) event.preventDefault();