jquery-touch 轻量级touch事件库

程序名称:jquery-touch

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

jquery-touch 介绍

基于jQuery的轻量级touch事件库

demo: photo-slide

支持移动端和pc端

  • touchstart

  • touchmove

  • touchend

使用方法

$.touch.bind($('.td'), {
    start: function(e) {
        //console.log('start', e);
    },
    move: function(e) {
        //console.log('move', e);
    },
    end: function(e) {
        console.log('end', e);
    },
    swipe: function(e) {
        if(e.direction == 'left') {
            console.log('swipte left', e);
        } else if(e.direction == 'right') {
            console.log('swipte right', e);
        }

    }
});

更多请看demo示例

jquery-touch 官网

https://github.com/monsterooo/jquery-touch

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...