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"?

有帮助吗?

解决方案

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.

其他提示

var scrollObject = $(".scrollable").scrollable({touch: false});
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top