Tutorial: Handlers and events

Handlers and events

touchSwipe Fork me on GitHub

events: tap hold swipe swipeLeft swipeRight swipeUp swipeDown swipeStatus pinch pinchIn pinchOut pinchStatus

See the docs for more on each event

You can either assign callback methods as part of the options object, or you can assign event handlers using the jQuery on/off event registration.

The example below logs both from the callback and the event handlers. The Remove Events button will remove the event bindings, and then only the callbacks will be logged. Event logs are bold, callbacks are normal.