diff --git a/pages/component/general-event/general-event.uvue b/pages/component/general-event/general-event.uvue index 333f8d25c139ea7e6320f36b6728e7157e781454..7e8cefd152989ecb778b01bc9b3e125f335012b2 100644 --- a/pages/component/general-event/general-event.uvue +++ b/pages/component/general-event/general-event.uvue @@ -130,9 +130,9 @@ longPressEvent: null as TouchEvent | null, touchEndEvent: null as TouchEvent | null, onTapTime: 0, - tapEvent: null as MouseEvent | null, + tapEvent: null as PointerEvent | null, onClickTime: 0, - clickEvent: null as MouseEvent | null, + clickEvent: null as PointerEvent | null, onLongPressTime: 0, } }, @@ -161,12 +161,12 @@ this.onTouchEndTime = Date.now() console.log('onTouchEnd') }, - onTap(e : MouseEvent) { + onTap(e : PointerEvent) { this.tapEvent = e this.onTapTime = Date.now() console.log('onTap') }, - onClick(e : MouseEvent) { + onClick(e : PointerEvent) { this.clickEvent = e this.onClickTime = Date.now() console.log('onClick') diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue index 1aaa617775dd06d340f4db04a87a58b94c433999..26c6f9d6a21860a564bf1eb001a906bc1e0d4b21 100644 --- a/pages/tabBar/API.uvue +++ b/pages/tabBar/API.uvue @@ -537,7 +537,7 @@ hidePop: function () { (this.$refs["pop"] as Element).style.setProperty("display", "none") }, - stopClickPop: function (e : MouseEvent) { + stopClickPop: function (e : PointerEvent) { e.stopPropagation() //点击到pop的非灰色区域,拦截点击事件 } },