simontabor / jquery-toggles

jQuery plugin to make easy toggle buttons
http://simontabor.com/labs/toggles
MIT License
362 stars 67 forks source link

Drag not working on tactile devices #36

Open JordanMachado opened 10 years ago

JordanMachado commented 10 years ago

Hi there, I advice people don't use this pluggin for tactile devices, because drag is not triggerred.

thibka commented 9 years ago

Albinsunnanbo's answer is awesome but it might not be enough with Samsung browser. I got it working by adding this before any Toggle-related code :

document.addEventListener("touchmove", function (event) { event.preventDefault(); }, false); document.addEventListener("touchstart", function (event) { event.preventDefault(); }, false);

Hope it will help !

Thibka

adrian-e commented 9 years ago

I can confirm it is not working neither in Android nor in iOS and proposed patches didn't work either for me. Sadly will look for alternatives :(