jQuery Mobile swiperight event
Examples
The element <p> Swipe to the right on the horizontal hide it:
$("p").on("swiperight",function(){
$(this).hide();
});
$(this).hide();
});
try it"
Definition and Usage
swiperight event is within one second drag horizontally to the right trigger more than 30px (vertical drag is less than 75px) time.
Related events:
- Swipe - means in one second, horizontal or vertical drag is greater than 30px drag event is less than 75px triggered.
- swipeleft - means in one second, left drag event is triggered when more than 30px horizontal direction.
grammar
$("selector").on("swiperight",function(event){...})
参数 | 描述 |
---|---|
function(event) | 必须。指定 swiperight 事件触发时执行的函数。 该函数有可选的事件对象 ,事件对象可以是任何 jQuery 事件属性 (例如 event.target, event.type, 等)。更多信息请查阅 jQuery 事件参考手册 。 |
More examples
Event objects
Use event.target property to return the DOM element swiperight event trigger.