Sortable
Sortable copied to clipboard
Click events on touch devices
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 Try increasing the touchStartThreshold
option
Having the same issue on Android only (iPhone is Okay). Setting touchStartThreshold=50
didn't help.
My version is 1.12.0
Fixed my issue by using the following setting:
filter: ".ignore-elements", // Selectors that do not lead to dragging (String or Function)
I have the same problem but only when adding a filter. On the element I put the filter, the click event doesn't work.
It was fixed for me setting the preventOnFilter
option to false
.