easy-touch
a light weight javascript gestures library
Usage
npm install --save easy-touch
or
const touch = windowtouch
API
on
on(str action, fn callback) 监听 action 动作
action
目前支持:
pan
(滑动)
callback
需要一个参数 e,e 参数会有个 type
属性:
pan
:panleft
, panright
, panup
, pandown