From 04531f33c7b36a170a52ce65e4424afaf7c0ef8a Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 18 Apr 2025 23:42:20 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=AE=98=E7=BD=91=E5=8F=8B=E6=83=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=9B=B4=E5=B0=8F=E4=B8=80=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/web/src/components/home/Screenshots/Screenshots.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/apps/web/src/components/home/Screenshots/Screenshots.tsx b/website/apps/web/src/components/home/Screenshots/Screenshots.tsx index 723d514c61..604b582dc9 100644 --- a/website/apps/web/src/components/home/Screenshots/Screenshots.tsx +++ b/website/apps/web/src/components/home/Screenshots/Screenshots.tsx @@ -177,7 +177,7 @@ export function Screenshots({ const { clientX, clientY } = e instanceof MouseEvent ? e : e.touches[0] // 新增:计算右侧触发区域(示例右侧75%) - const rightEdgeThreshold = window.innerWidth * 0.75 + const rightEdgeThreshold = window.innerWidth * 0.8 const isInRightEdge = clientX >= rightEdgeThreshold && clientY >= window.innerHeight * 0.25 && clientY <= window.innerHeight * 0.65 @@ -189,7 +189,7 @@ export function Screenshots({ // 修改:仅在右侧边缘区域时赋予有效值 lerpRotationTo.current.set(y, x) lerpPositionXTo.current = isInRightEdge ? - (clientX - rightEdgeThreshold) / (window.innerWidth * 0.25) : 0 // 在右侧25%区域内从0渐变到1 + (clientX - rightEdgeThreshold) / (window.innerWidth * 0.2) : 0 // 在右侧25%区域内从0渐变到1 } }