cubiq/iscroll — pull request #250 by lvl99 (2012-08-14 08:18:28+00:00)
Title: Disable iScroll scrolling when touch specific element

Hiya,

I implemented this to disable iscroll from scrolling when I touch a selected element that's specified in the script variable `stopOnTouch`. I'm not sure how elegant it is, but perhaps it might lead to some other sort of more elegant fix.

I understand a method could be implemented within the `onBeforeScrollStart` option but I wanted a generic base-level way of doing it as I don't see any situation in which I'd want a user to not be able to select a form field.

The `stopOnTouch` value could be relegated to `that.options` as well, rather than as a private script variable. I also opted for a string match (using angle brackets to match whole words) rather than separating each string item to match.

(Apologies for the weird commits; my first time figuring out github's social contribution stuff)

Matt