jQuery Mobile swipeleft
Event
Example
Swipe left horizontally on a <p>
element to hide it:
Definition and Usage
The swipeleft
event is triggered when a horizontal swipe left of more than 30px (with vertical movement less than 75px) occurs within one second.
Related Events:
- swipe - Triggered when a horizontal swipe of more than 30px or a vertical swipe of less than 75px occurs within one second.
- swiperight - Triggered when a horizontal swipe right of more than 30px occurs within one second.
Syntax
Parameter | Description |
---|---|
function(event) | Required. Specifies the function to run when the swipeleft 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, see the jQuery Event Reference |