修复滑动时候的渲染问题

This commit is contained in:
kron
2025-08-06 17:34:38 +08:00
parent 79feb32766
commit 66dea2b199
3 changed files with 84 additions and 85 deletions

View File

@@ -406,15 +406,16 @@ export const calcPinBowTarget = (
if (
x / targetWidth >= 0.26 &&
x / targetWidth <= 0.74 &&
y / targetHeight <= 0.48
y / targetWidth >= 0.032 &&
y / targetHeight <= 0.51
) {
return calcHalfBowTarget(x - targetWidth * 0.26, y, side, noX);
} else if (x / targetHeight <= 0.48 && y / targetHeight >= 0.456) {
return calcHalfBowTarget(x, y - targetHeight * 0.456, side, noX);
} else if (x / targetHeight >= 0.52 && y / targetHeight >= 0.456) {
return calcHalfBowTarget(x - targetWidth * 0.26, y - targetHeight * 0.032, side, noX);
} else if (x / targetHeight <= 0.48 && y / targetHeight >= 0.482) {
return calcHalfBowTarget(x, y - targetHeight * 0.482, side, noX);
} else if (x / targetHeight >= 0.52 && y / targetHeight >= 0.482) {
return calcHalfBowTarget(
x - targetWidth * 0.52,
y - targetHeight * 0.456,
y - targetHeight * 0.482,
side,
noX
);