user1370288
user1370288

Reputation: 919

How to stop JqueryTools scrollable touch

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

Upvotes: 1

Views: 2059

Answers (2)

Johnny Tiozzo
Johnny Tiozzo

Reputation: 31

var scrollObject = $(".scrollable").scrollable({touch: false});

Upvotes: 1

will
will

Reputation: 4575

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.

Upvotes: 1

Related Questions