From 4536ac06781377ebbb1e35affc743cb4c3feed51 Mon Sep 17 00:00:00 2001 From: Lhcfl Date: Fri, 3 May 2024 00:28:46 +0800 Subject: [PATCH] reviewed --- packages/client/src/components/MkPullToRefresh.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/MkPullToRefresh.vue b/packages/client/src/components/MkPullToRefresh.vue index 0bbb9ee4d3..76bed9e52f 100644 --- a/packages/client/src/components/MkPullToRefresh.vue +++ b/packages/client/src/components/MkPullToRefresh.vue @@ -160,7 +160,7 @@ function moving(event: TouchEvent | PointerEvent) { const moveScreenX = getScreenX(event); const moveHeight = moveScreenY - startScreenY!; const moveWidth = moveScreenX - startScreenX!; - if (Math.abs(moveWidth) > moveHeight * MAX_PULL_TAN_ANGLE) { + if (Math.abs(moveWidth / moveHeight) > MAX_PULL_TAN_ANGLE) { if (Math.abs(moveWidth) > 30) pullStarted.value = false; return; }