處理觸摸事件的jQuery插件:TouchSwipe

jopen 11年前發布 | 48K 次閱讀 其他jQuery插件 jQuery插件 TouchSwipe

TouchSwipe 是一個 jQuery 用于處理觸摸事件的插件,主要用于 iPad 和 iPhone 之類的設備。

處理觸摸事件的jQuery插件:TouchSwipe

特點:

  • Detects swipes in 4 directions, "up", "down", "left" and "right"
  • Detects pinches "in" and "out"
  • Supports single finger or double finger touch events
  • Supports click events both on the touchSwipe object and its child objects
  • Definable threshold / maxTimeThreshold to determin when a gesture is actually a swipe
  • Events triggered for swipe "start","move","end" and "cancel"
  • End event can be triggered either on touch release, or as soon as threshold is met
  • Allows swiping and page scrolling
  • Disables user input elements (Button, form, text etc) from triggering swipes

項目主頁:http://www.baiduhome.net/lib/view/home/1375148042280

     本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
     轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
     本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!