Open ttseng opened 9 years ago
I would also LOVE to know a way to implement this. Otherwise, when you try to scroll the page you end up dragging and dropping items you don't mean to drag and drop.
:+1:
+1
+1
+1
I've created a pull request which implements this using a global touchPunchDelay
property
I would like to enable draggable elements on my page on a longpress. I tried implementing this using mouseup and mousedown in javascript as follows:
You can check that this works on a desktop here: http://bip-android-test.herokuapp.com/projects/776/steps/mobile?auth_token=yC7dCCh8Lfkr8CxLfZ4Z&tree_width=2 The block that you long click on becomes highlighted in yellow after a short delay and becomes draggable.
But when I check it on mobile, the mousedown event doesn't seem to be registered on a long press.
Is there a way to implement long press using jquery-ui-touch-punch?