-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
fix: "making things draggable blocks touch scrolling" #134
base: main
Are you sure you want to change the base?
Conversation
…r drag-end on mobile
|
@Raiondesu is attempting to deploy a commit to the Purus Projects Team on Vercel. A member of the Team first needs to authorize it. |
Hi, thanks for the PR
Does this have a negative side-effect? |
Only in case of having side effects directly in the I believe it's possible to implement a workaround - only trigger |
it's been about half a year now, is this stale? |
This PR fixes #61 while also adding some more customizability to the
touch-action
property of draggable elements.With this PR, it is now possible to simply set
touch-action
to another value in case there's a need.This PR also adds a listener for
dragEnd
to thetouchend
event, as on mobile, when scrolling,pointerup
may never even fire.This, however, has the drawback of sometimes firing the
dragEnd
callback multiple times.I tested various other solutions to prevent this effect, including using releasePointerCapture, without any success.
The issue is not completely gone, however, as the problem of janky dragging still persists sometimes, though much less now thanks to the
touchend
event.I'll be trying multiple ways to fix it completely in the coming days. However, it's possible to almost completely fix it in userland by implementing a threshold system in the
onDrag
handler.Any feedback is very welcome!