hammer.js - multi-touch gesture library

hammer.js  is a multi-touch gesture library, can be added to a web page Tap, Double Tap, Swipe, Hold, Pinch, Drag and other multi-touch event , replacing their own monitor underlying touchstart, touchmove, touchend event and write a lot of judgment logic pain.

hammer.js  only browser that supports touch-screen device on the desktop browser, but also be able to touch as mouse clicks, easy developer debugging on a desktop browser. ( JS Aberdeen in their hand back the project which is also used hammer.js , really easy to use)

Instructions

 

还支持jQuery插件的形式调用

 

Official website address: http://eightmedia.github.com/hammer.js/   (with demo)
Source Address: https://github.com/EightMedia/hammer.js
File Size: 23K (source code), 6K (minified)

Reproduced in: https: //my.oschina.net/zhepama/blog/265025

Guess you like

Origin blog.csdn.net/weixin_34384557/article/details/91927351