Question

I have been using JQueryTools scrollable for a quiz, which has worked brilliantly, though the only problem I have found on iOS devices is that you can scroll by swiping to the next slide rather than using the next button which defeats the purpose of filling out a quiz, has anyone worked with this plug-in before and knows "how to turn any touch functionality off"?

Was it helpful?

Solution

If you look through the source, they are utilising touchstart and touchmove and it is quite separate from the rest of the plugin, nothing depends on it, so I'd just go in there and delete that stuff maually. Shouldn't take long.

EDIT:

Scrap all that, just spotted this: https://raw.github.com/jquerytools/jquerytools/master/src/scrollable/scrollable.js

You can set touch to false and it will disable everything.

OTHER TIPS

var scrollObject = $(".scrollable").scrollable({touch: false});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top