Edit this page

holdToDrag Boolean(default: false)

Suitable for touch oriented user interface, in order to avoid collision with the touch scrolling gesture. When set to true, the item will be activated after the user taps and holds the finger on the element for a short amount of time. The item will also be activated by pressing, holding and lifting the finger without any movement. Dragging it afterwards will initiate the drag immediately.

Example - Sortable with holdToDrag enabled

<ul id="sortable">

        holdToDrag: true
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article