From the course: jQuery Mobile Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Touch events

Touch events - jQuery Mobile Tutorial

From the course: jQuery Mobile Essential Training

Start my 1-month free trial

Touch events

jQuery mobile provides a set of events that your application can use to listen in on interesting things that are going on within the framework and your application. These events are divided into four different categories. There's Touch Events, Scroll Events, Page Events, and Orientation Events. Touch Events basically simplify working with some common touch gestures, for example, like when the user taps or taps and holds on the screen or swipes left and right. It makes it really simple to respond to gestures like that without having to write custom event code. Scroll Events provide a cross-platform way of handling scrolling events, such as when scrolling starts and when scrolling stops. And you can listen to these events if you want to provide some sort of optimization, such as pausing some kind of operation when a scroll takes place. You can use Page Events to listen in on events, such as when pages are loaded, when they're created, when they're shown and hidden, when there's errors…

Contents