瀏覽代碼

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

icssoa 4 月之前
父節點
當前提交
9e84157463
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      uni_modules/cool-ui/components/cl-popup/cl-popup.uvue

+ 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) {