修复滑动时候的渲染问题
This commit is contained in:
13
src/util.js
13
src/util.js
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user