Tap or swipe in this area
May 21, 2021 jQuery Mobile
The touch event is triggered when the user touches the screen (page).
Touch events can also be applied to desktop computers: tap or swipe the mouse! |
The click event is triggered when the user clicks on the element.
Here's an example: When you click on the element, hide the current element:
The Click Don't Put (Long Press) event is triggered after clicking Don't Put (about a second).
Sliding events are events that are triggered when the user drags horizontally larger than 30PX in a second, or when the vertical drag is less than 20px:
The swipe left event triggers when the user drags an element to the left greater than 30px:
The swipe right event triggers when the user drags an element to the right greater than 30px:
In the next section, we'll cover the jQuery Mobile Roll Event.