@Override
public void onTouchMove(TouchMoveEvent event) {
if (touchId == null)
return;
JsArray<Touch> touches = event.getTouches();
for (int i = 0; i < touches.length(); i++) {
Touch touch = touches.get(i);
if (touch.getIdentifier() != touchId)
continue;
pan(touch.getClientX() - x, touch.getClientY() - y);
x = touch.getClientX();
y = touch.getClientY();
event.preventDefault();
}
}
PanListener.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:djvu-html5
作者:
评论列表
文章目录