Can't use underlying element on mobile

Open
#666 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing the Draggable touchstart, touchmove, and touchend handling, especially where preventDefault affects an editable span. Reproduce dragging and caret placement on a mobile device, then verify that both touch dragging and text editing work without breaking the existing scroll behavior.

Written by the indexing model from the issue text.

Description

Hi, I use this Draggable to drag something like a caption, it has an editable span.
I want to be able both to drag on touch (even when on top of editable span) and to enter text and place text caret where I touched (like in the default). I think this works on desktop but because of preventDefault if touchstart/move/end it doesn't work on touch devices (mobile).
I know you implemented this to stop some scroll, but maybe user can implement it or you can make it optional, or something like that...
Can you fix this, please or do you maybe have a workaround for me?
Thank you, I really like your component it is really nice and simple to use!

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.