-
Notifications
You must be signed in to change notification settings - Fork 311
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
Swiping too hard causes the whole viewport unclickable #676
Comments
Are you able to reproduce this outside of the inspector (ie real device)? |
Yes, I deployed on production as a webapp, and an Android webview through CapacitorJS. |
The example from the docs you're referring to and showing in the issue: are you able to reproduce this on a real device with a normal browser? |
@dbismut Yes I could reproduce it on my phone, and some of our users. How about from your side? |
No, I can't, hence why I'm asking. I'm using an iPhone 15 Pro and Safari. Reason why I'm asking about context and devices is because I think it might be related to pointer capture but there's no reason why it wouldn't work normally on regular devices. |
@dbismut all occurances happened on Android phones, FYI I use Samsung S22 ultra. |
I am experiencing the same issue on both web Chrome with devtools and multiple Android (Samsung) devices in Chrome. It works fine on Firefox. As far as I can tell it's not an issue with the library, but with adding touchAction to an element, @vincentsartoko. I'm still mentioning it here, since that's the only mention of the issue I've found so far and maybe next person finds a solution. |
Here's the best hack I found, slightly modified from solution posted in the thread on Chromium issues forum started mere 4 years ago.
It stops the problem from interrupting user experience and I hate it. Given prevalence of Chromium I believe it may be worth at least mentioning in docs alongside explanation of touch-action role. |
Describe the bug
When using
useDrag
wherevelocity
is greater than 1, there is a moment where you cannot click anywhere else. The behaviour is similar to clicking a shadow overlay that doesn't register anything, and everything seems fine after you click this shadow overlay.This also happens on the official site of use-gesture, take a look at the video below.
Sandbox or Video
Here is the bug on the use-gesture website:
bug.mp4
Here is the detailed
console.log
on my app:bug1.mp4
Information:
Checklist:
touch-action: none
to the draggable element.The text was updated successfully, but these errors were encountered: