From f32265a02ef7c2bb23c4c6f1729bd613f0b85e21 Mon Sep 17 00:00:00 2001 From: qiang Date: Mon, 20 May 2019 18:10:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E4=B8=8A=20canvas=20=E7=9B=91=E5=90=AC=20tou?= =?UTF-8?q?ch=20=E4=BA=8B=E4=BB=B6=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=A7=A6=E6=91=B8=E5=9D=90=E6=A0=87=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/canvas/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/view/components/canvas/index.vue b/src/core/view/components/canvas/index.vue index ef894d19f..d1a39d8dd 100644 --- a/src/core/view/components/canvas/index.vue +++ b/src/core/view/components/canvas/index.vue @@ -31,12 +31,12 @@ function resolveColor (color) { } function processTouches (target, touches) { - return ([]).map.call(touches, (touche) => { + return ([]).map.call(touches, (touch) => { var boundingClientRect = target.getBoundingClientRect() return { - identifier: touche.identifier, - x: touche.clientX - boundingClientRect.x, - y: touche.clientY - boundingClientRect.y + identifier: touch.identifier, + x: touch.clientX - boundingClientRect.left, + y: touch.clientY - boundingClientRect.top } }) } -- GitLab