Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Click events on touch devices

Open sadikyalcin opened this issue 4 years ago • 5 comments

Problem:

I have click events on sortable lists and they don't trigger on touch devices because as soon as you touch, sortable triggers. Any way around this?

Tested on Android - Huawei P20 Pro iOS - Seems to be fine on an iPad

sadikyalcin avatar Aug 30 '19 16:08 sadikyalcin

@sadikyalcin Try increasing the touchStartThreshold option

owen-m1 avatar Aug 30 '19 17:08 owen-m1

Having the same issue on Android only (iPhone is Okay). Setting touchStartThreshold=50 didn't help. My version is 1.12.0

kkomelin avatar Nov 23 '20 20:11 kkomelin

Fixed my issue by using the following setting:

filter: ".ignore-elements", // Selectors that do not lead to dragging (String or Function)

kkomelin avatar Nov 23 '20 21:11 kkomelin

I have the same problem but only when adding a filter. On the element I put the filter, the click event doesn't work.

andresespinosapc avatar May 03 '22 19:05 andresespinosapc

It was fixed for me setting the preventOnFilter option to false.

andresespinosapc avatar May 03 '22 20:05 andresespinosapc