HotStudio / touchy

jQuery plugin for touch events
touchyjs.org/
Other
357 stars 108 forks source link

preventDefault should be optional #6

Closed Joris-van-der-Wel closed 11 years ago

Joris-van-der-Wel commented 11 years ago

I had a case in which I did not want preventDefault() to be called on touchstart, etc. (I wanted to be able to swipe and use normal scrolling). The only way to do this at the moment is to comment out the lines in the touchy lib.

Would it be possible to configure the use of preventDefault() using a setting?

Thanks

fisherwebdev commented 11 years ago

I added this. Thanks for the suggestion, and my apologies for not being able to get to this sooner. You can now disable preventDefault within each phase: start, move or end. Please see the settings code at the beginning of the file. Any feedback is most welcome.

Joris-van-der-Wel commented 11 years ago

Thank you, looks like it is working great.