Replies: 1 comment 7 replies
-
Weird. Would you be able to provide a monomial repro sandbox? I'll take a look. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using @use-gesture/react, my onDragEnd events are firing after only a few onDrag events, even when touch is held down much longer.
Here is the code that handles actual drag events. I am developing a google-maps like element where each element in the data object is being updated to reflect a drag movement. This code works as intended on desktop.
However, on mobile, the onDragEnd event fires after only a few onDrag events, even when many more should be occurring. Here is the output of console.log() from the above code on a chrome emulation of a touch device. (This is also true for actual touch devices as well, based on app behavior)

For reference, here is the output from desktop after dragging around a bit:

Just in case the element doing the listening has something to do with it, here is the code for that:
Any insight as to why this event would be getting fired early only on touchscreens would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions