Closed RubyLouvre closed 9 years ago
Android Gestures
ios Gestures Tabel 1-1
Tapping (any number of taps) Pinching in and out (for zooming a view) Panning or dragging Swiping (in any direction) Rotating (fingers moving in opposite directions) Long press (also known as “touch and hold”)
Windows Phone Gesture
注: windows phone的触屏事件名称比较奇葩
Hammer Gestures
hold tap doubletap drag, dragstart, dragend, dragup, dragdown, dragleft, dragright swipe, swipeup, swipedown, swipeleft, swiperight transform, transformstart, transformend rotate pinch, pinchin, pinchout touch (gesture detection starts) release (gesture detection ends)
可以看到通用的触屏事件至少包括:
点击稍复杂:
注: 下表给出是触屏事件中的元事件, 组合事件如: hold+swipe在Android上用在移动桌面图片; 由于组合事件众多, 不一一列出
tap(avalon使用click)
doubletap(avalon使用doubleclick)
hold
tapn
swipe
swipeleft
swiperight
swipeup
swipedown
swipen
drag
dragstart
dragend
dragup
dragdown
dragleft
dragright
pinchin
pinchout
squeeze
splay
rotatecw
rotateccw
shake
shakeup
shakedown
shakeleft
shakeright
shakeforward
shakeback
shakeleftright
shakeforwardback
shakeupdown
根据hammer ,长按的时间长度为500ms(zepto为700ms),双击的时间间隔为300px, swipe的移动距离为10px,速度为0.65px/ms(zepto的swipe距离为30px,没有速度限制),速度的限制也是hammer区分pin与swipe的基准;pinch是两个触摸点,通过scale区分放大缩小
触屏事件
android
Android Gestures
ios
ios Gestures Tabel 1-1
wp
Windows Phone Gesture
注: windows phone的触屏事件名称比较奇葩
Hammer.js
Hammer Gestures
其他参考资料
通用触屏事件
可以看到通用的触屏事件至少包括:
点击稍复杂:
通用触屏事件列表
注: 下表给出是触屏事件中的元事件, 组合事件如: hold+swipe在Android上用在移动桌面图片; 由于组合事件众多, 不一一列出
tap(avalon使用click)
拍击doubletap(avalon使用doubleclick)
双击hold
长按tapn
n(2,3..)指拍击swipe
单指滑动swipeleft
单指向左滑动swiperight
单指向右滑动swipeup
单指向上滑动swipedown
单指向下滑动swipen
n(2,3..)指滑动drag
拖拽dragstart
拖拽开始dragend
拖拽结束dragup
向上拖拽dragdown
向下拖拽dragleft
向左拖拽dragright
向右拖拽pinchin
双指捏合pinchout
双指展开squeeze
五指捏合splay
五指展开rotatecw
顺时针旋转rotateccw
逆时针旋转shake
移动设备shakeup
向上移动设备shakedown
向下移动设备shakeleft
向左移动设备shakeright
向右移动设备shakeforward
向前移动设备shakeback
向后移动设备shakeleftright
左右移动设备shakeforwardback
前后移动设备shakeupdown
上下移动设备https://github.com/alexgibson/shake.js