Replies: 1 comment 1 reply
-
@aldibatyr sidenote but v10 is around the corner, you should probably wait for it instead of using v9. v9 has been around for a long time now. But to answer your question: prior to v9, the lib used to attached events to the In your situation I'm not sure what happens to be honest: it shouldn't change anything in the behavior of the drag. Can you maybe send a codesandbox example reproducing the issue on v9? |
Beta Was this translation helpful? Give feedback.
-
Greetings,
We are currently upgrading react-use-gesture to v9 and noticed that
useGesture({onDrag})
seems to be working differently now. The drag gesture drops when the mouse leaves the element that has binding to useGesture. Previously, dragging gesture worked even if you drag for the whole screen width.I have read the changelog about
Drag now uses setPointerCapture and releasePointerCapture
. Would you be able to explain what needs to be done to achieve the same functionality as v8 and v7?Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions