Skip to content

🐛 touchmove event don't work with neodrag #136

@buhodev

Description

@buhodev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions