kornelski / slip

Slip.js — UI library for manipulating lists via swipe and drag gestures
BSD 2-Clause "Simplified" License
2.44k stars 213 forks source link

Callout when long tap on Android and IE #41

Open guillerodriguez opened 9 years ago

guillerodriguez commented 9 years ago

I am using -webkit-touch-callout:none to avoid the default callout menu when doing a long tap on an item for reordering. This works as expected on iPhone and iPad. However it does not seem to work for Android, and I don't know of any equivalent for mobile IE (touch-action:none does not work either). Any hints?

I am testing with Android 4.4 and mobile IE 11.

sun449036002 commented 6 years ago

Hi,i get the same question now, are you fix it?

kornelski commented 6 years ago

Try user-select:none

myfrom commented 6 years ago

If user-select: none doesn't help I'd recommend trying to catch and prevent context menu event:

  elementOrWindow.addEventListener('contextmenu', e => e.preventDefault());