atlassian / pragmatic-drag-and-drop

Fast drag and drop for any experience on any tech stack
https://atlassian.design/components/pragmatic-drag-and-drop
Other
7.45k stars 133 forks source link

Press and hold to drag is problematic in Grid example (iOS) #9

Closed aarjithn closed 1 month ago

aarjithn commented 1 month ago

Currently for drag to start, you need to press and hold (this was not very obvious so I initially thought drag doesn't work in mobile).

The problem is when what you are trying to drag is an image - in that case iOS does this.

image

Is it possible to just drag instead of having to press and hold? Dndkit / formkit dnd etc works that way

alexreardon commented 1 month ago

We are not in control of when the drag starts - we are listening exclusively to the web platforms built in drag and drop events. I'll take a look and see if this example can be improved for iOS

alexreardon commented 1 month ago

Thankfully it's pretty easy to fix:

The platform can be fun sometimes!

alexreardon commented 1 month ago

I'll merge these changes into our examples, and you should see the updates in this repo and on our docs in ~12 hours