From e942c63885c5b231ca6d409c5bee9b650144f401 Mon Sep 17 00:00:00 2001 From: kron Date: Thu, 6 Nov 2025 16:19:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BowTargetEdit.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/BowTargetEdit.vue b/src/components/BowTargetEdit.vue index cc2c753..a1b2fe3 100644 --- a/src/components/BowTargetEdit.vue +++ b/src/components/BowTargetEdit.vue @@ -47,9 +47,10 @@ const onClick = async (e) => { const clickYInContainer = e.detail.y - rect.value.top; let target = clickYInContainer * scale.value - viewportH / 2; target = Math.max(0, Math.min(contentH - viewportH, target)); + console.log(target); setTimeout(() => { - scrollTop.value = target; - }, 100); + scrollTop.value = target > 180 ? target + 10 : target; + }, 200); } const newArrow = { x: (e.detail.x - 6) * scale.value,