From 09087e3128cf470ff2b3921876deb8db7f2424b3 Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 13 Sep 2024 13:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20touch-events-bubbles=20?= =?UTF-8?q?=E5=9C=A8=20Android=20=E5=B9=B3=E5=8F=B0=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global-events/touch-events-bubbles.uvue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/component/global-events/touch-events-bubbles.uvue b/pages/component/global-events/touch-events-bubbles.uvue index 36f533bb..40279098 100644 --- a/pages/component/global-events/touch-events-bubbles.uvue +++ b/pages/component/global-events/touch-events-bubbles.uvue @@ -24,9 +24,9 @@ return { iconRect: null as DOMRect | null, viewEleRect: null as DOMRect | null, - touchstartValue: [], - touchmoveValue: [], - touchendValue: [], + touchstartValue: [] as string[], + touchmoveValue: [] as string[], + touchendValue: [] as string[], ret1: false, ret2: false } @@ -68,7 +68,7 @@ this.clearValue() }, onTouchStart(e : TouchEvent) { - let _id = e.currentTarget!.attributes.get("id") + let _id = e.currentTarget!.attributes.get("id") as string if (!this.touchstartValue.includes(_id)) { @@ -80,7 +80,7 @@ onTouchMove(e : TouchEvent) { - let _id = e.currentTarget!.attributes.get("id") + let _id = e.currentTarget!.attributes.get("id") as string if (!this.touchmoveValue.includes(_id)) { this.touchmoveValue.push(_id) @@ -90,7 +90,7 @@ }, onTouchEnd(e : TouchEvent) { - let _id = e.currentTarget!.attributes.get("id") + let _id = e.currentTarget!.attributes.get("id") as string if (!this.touchendValue.includes(_id)) { this.touchendValue.push(_id) -- GitLab