joehewitt / scrollability

Imitates iOS native scrolling in JavaScript.
http://joehewitt.github.com/scrollability
Other
1.78k stars 146 forks source link

Only prevent default behaviour for touch candidates #6

Closed dirkmc closed 13 years ago

dirkmc commented 13 years ago

At the moment scrollability disables all touchstart events, meaning that scrolling no longer works anywhere outside the elements that have class scrollable.

This pull request simply first checks if the event applies to a touch candidate, and if not, allows normal behaviour to proceed.

joehewitt commented 13 years ago

Thanks!

dirkmc commented 13 years ago

No worries, thanks for the cool widget :) It works amazingly well.