推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
jmyz0455

移动端的页面,有哪些插件可以简单地绑定滑动事件?

  •  
  •   jmyz0455 · Nov 11, 2016 · 4725 views
    This topic created in 3496 days ago, the information mentioned may be changed or developed.

    想在移动端页面上的某个区域绑定滑动事件,用户在该区域上左滑、右滑会触发指定。我自己用 touchstart touchmove touchend 写出来的功能体验一般,斜上角滑动识别不好。想直接找个插件用,有什么插件可以推荐?

    本来用 jquery 1.10.2 配搭 jquery.mobile 1.4.5 就够,但是触发滑动事件时总是报错:“ Unable to preventDefault inside passive event listener due to target being treated as passive ”,谷歌一下也没找到解决方案。 jquery.mobile 好像好久没更新了,又不能跟 jquery 3.1.1 一起用,但是一句 “$(selector).on("swipeleft/swiperight",childSelector,data,function,map)” 就能绑定滑动事件真的很方便,想看看大家是用什么插件 /方法的?

    2 replies    2016-11-11 20:23:16 +08:00
    hiro0729
        1
    hiro0729  
       Nov 11, 2016
    ETiV
        2
    ETiV  
       Nov 11, 2016
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1131 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 17:57 · PVG 01:57 · LAX 10:57 · JFK 13:57
    ♥ Do have faith in what you're doing.