ngDraggable icon indicating copy to clipboard operation
ngDraggable copied to clipboard

300ms delay ontouchstart

Open ghost opened this issue 9 years ago • 6 comments

I was testing on iPad with the current version of ngDraggable and the user needs to wait 300ms before start dragging, otherwise, the item is not dragging.

Is there a way to remove the 300ms delay for iOS webkit mobile browsers?

ghost avatar Nov 24 '15 19:11 ghost

+1

@diego-cortez did you find a solution for this?

francoisgrogor avatar Feb 16 '16 10:02 francoisgrogor

@francoisgrogor yeah, use ngTouch angular directive.

ghost avatar Feb 16 '16 19:02 ghost

Thanks for response. Could you elaborate on that please? Currently ngDraggable has a configuration option to increase/decrease the timeout to ensure the native scrolling on touch devices is not effected.

Please elaborate on how using ngTouch fits into this?

francoisgrogor avatar Feb 17 '16 05:02 francoisgrogor

Well, I just added ngTouch directive to remove the delay on tap.. What is you current problem?, maybe I can help if I see what are you trying to do.

ghost avatar Feb 17 '16 17:02 ghost

My issue is, that i feel the start of the drag on the touch device is a bit laggy.

So if I attempt to touch and drag too quick, the window will just scroll. Essentially I just feel that the drag initial action required to start the drag on a touch screen is not reactive enough

francoisgrogor avatar Feb 19 '16 07:02 francoisgrogor

Yeah, I felt that, thats why I used ngTouch, I'm not sure but I remember that the issue was fixed on webkit mobile browser, I think I tested on iPad.. I have an example if you want to test. please send me a mail to diego.cortez at tutanota.de

ghost avatar Feb 19 '16 18:02 ghost