Search code examples
reactjsreact-use-gesture

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


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.

Solution

  • 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.