Easy Tutorial
❮ Jquerymobile Events Orientation Jquerymobile Intro ❯

jQuery Mobile swipe Event

jQuery Mobile Events

Example

Hide the element <p> by swiping horizontally on it:


Definition and Usage

The swipe event is triggered when a horizontal drag of 30px or more is detected (vertical drag less than 75px).

Tip: You can swipe quickly in both left and right directions.

Related Events:


Syntax

Parameter Description
function(event) Required. Specifies the function to run when the swipe event is triggered. <br> <br>The function has an optional event object, which can be any jQuery event property (e.g., event.target, event.type, etc.). For more information, refer to the jQuery Event Reference

More Examples

Event Object


jQuery Mobile Events

❮ Jquerymobile Events Orientation Jquerymobile Intro ❯