Skip to content
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

Content clicks don't register on mobile devices #36

Open
steffchep opened this issue May 31, 2021 · 1 comment
Open

Content clicks don't register on mobile devices #36

steffchep opened this issue May 31, 2021 · 1 comment

Comments

@steffchep
Copy link

steffchep commented May 31, 2021

Hi!

Great working library, works really well. However, I noticed one thing on mobile browsers:

  • if there are buttons inside the dragged content, and you've not specified a drag handle (i.e. making the element itself the handle), those buttons don't work at all - tapping them does nothing

Seen on Samsung Tab S6 Lite and Apple iPad Mini 5 (2019):

  • Android 11 Samsung Internet Browser
  • Android 11 Chrome
  • Android 11 Firefox
  • iPadOS 14.6 Safari
  • iPadOS 14-6 Firefox

In summary, looks like touch events are handled a little differently from mouse events.

The obvious workaround is to use a drag handle whenever there is clickable content inside - I was just wondering if there is something else that can be done.

@steffchep
Copy link
Author

steffchep commented May 31, 2021

Update: another workaround is using the filterTarget function in the options. Still it's odd that it would behave differently on Firefox, Edge or Chrome for Windows than it does on the listed mobile devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant