提交 dbfc6ac6 编写于 作者: 郭胜强

手势插件中移除mpvue特有属性

上级 ffc6151a
......@@ -43,8 +43,8 @@ class GestureLock {
onTouchStart(e) {
this.setOffset(e);
this.checkTouch({
x: e.pageX - this.offsetX,
y: e.pageY - this.offsetY
x: e.touches[0].pageX - this.offsetX,
y: e.touches[0].pageY - this.offsetY
});
}
......@@ -125,8 +125,8 @@ class GestureLock {
// 移动 绘制
moveDraw(e) {
// 画经过的圆
const x = e.pageX - this.offsetX;
const y = e.pageY - this.offsetY;
const x = e.touches[0].pageX - this.offsetX;
const y = e.touches[0].pageY - this.offsetY;
this.checkTouch({
x,
y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册