Переглянути джерело

修复 cl-popup 在拖动关闭位置错误问题

icssoa 4 місяців тому
батько
коміт
9e84157463

+ 1 - 1
uni_modules/cool-ui/components/cl-popup/cl-popup.uvue

@@ -409,7 +409,7 @@ function onTouchMove(e: UniTouchEvent) {
 		swipe.isMove = true;
 
 		// 计算Y轴偏移量
-		const offsetY = (e.touches[0] as UniTouch).pageY - swipe.startY;
+		const offsetY = (e.touches[0] as UniTouch).clientY - swipe.startY;
 
 		// 只允许向下滑动(offsetY > 0)
 		if (offsetY > 0) {