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