This commit is contained in:
Lhcfl 2024-05-03 00:28:46 +08:00
parent 5ad9bd8ceb
commit 4536ac0678

View file

@ -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;
}