ngryman / jquery.finger

:v: jQuery touch & gestures, fingers in the nose.
https://ngryman.sh/jquery.finger/
MIT License
423 stars 66 forks source link

Propagate preventDefault() to original event, take 2 #9

Closed quietmint closed 11 years ago

quietmint commented 11 years ago

See #4 and #6. The purpose is to prevent some of the browser's default behavior (specifically the buggy click events) while still allowing scrolling, zooming, etc.

If event.preventDefault() and friends are called in the custom handler, they will be propagated to the original stop event. For API completeness, there's also an option preventDefaultEnd to control this behavior via event data.

ngryman commented 11 years ago

Closing as this has been implemented in the latest release : https://github.com/ngryman/jquery.finger/releases/tag/v0.1.0-beta.

Thanks!