OnClick inside Draggable doesn't work on mobile mode

Open
#550 18 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, react
Domain
frontend, mobile

Research direction

Start with the linked CodeSandbox reproduction and compare the Draggable event behavior in desktop and mobile or emulated mobile mode. Trace the relevant mobile interaction path in the react-draggable source and verify that the example's onClick handler fires without breaking dragging. Done means the provided reproduction works in both modes.

Written by the indexing model from the issue text.

Description

Example: https://codesandbox.io/s/nervous-cdn-s2ufp

The desktop mode works ok.
Mobile mode not fired the event (you can try on mobile or with dev tools - same result).

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.