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

🐛 touchmove event don't work with neodrag #136

Open
buhodev opened this issue Oct 11, 2023 · 2 comments
Open

🐛 touchmove event don't work with neodrag #136

buhodev opened this issue Oct 11, 2023 · 2 comments

Comments

@buhodev
Copy link

buhodev commented Oct 11, 2023

On my desktop (using a mouse), neodrag behaves flawlessly. However, when I visited the page on my phone, the calculation logic of the touch pointer didn't work. I don't know if I'm doing something wrong or if it is a bug.

Related: #134

Reproduction:

  1. Visit https://svelte.dev/repl/d9f2ebce7b934f9a9c509e3148b0cd98?version=4.2.1 from your phone or open it with the mobile emulator in devtools
  2. Go to the preview tab on the Svelte repl to see the demo
  3. Touch the handle and without releasing, move your finger/mouse up or down
  4. See error

Note: If you visit the link from your desktop & then you open the mobile emulator from devtools, you might have to refresh the page so that the isTouchDevice variable updates correctly.

OS: Windows 11 & Android
Browser: Chrome Desktop & Android

@xk4rimx
Copy link

xk4rimx commented Dec 31, 2023

I'm facing the same issue.

@xk4rimx
Copy link

xk4rimx commented Jan 6, 2024

I'm facing the same issue.

Update: In my case, the draggable element was nested in other elements. Moving up the order of the draggable element fixed it.

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

No branches or pull requests

2 participants