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
9.8k stars 223 forks source link

Manually trigger iOS touch drag start #124

Open acrobid opened 2 months ago

acrobid commented 2 months ago

How can I manually send a drag start event when using touch events? What specific event is pdnd listening for?

I would like to customize the drag start on iOS, as I feel that the default touch and hold behavior is unintuitive and clunky when using a drag handle. I understand that pdnd is listening for native events to know when to trigger a drag start. The delay "feels" like a contextmenu event but I have had no luck rifling through the source.

In my specific case, I want to send a drag start event during the touchstart event on my drag handle element, but cannot figure out what event to send.