reviewed
This commit is contained in:
parent
5ad9bd8ceb
commit
4536ac0678
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ function moving(event: TouchEvent | PointerEvent) {
|
||||||
const moveScreenX = getScreenX(event);
|
const moveScreenX = getScreenX(event);
|
||||||
const moveHeight = moveScreenY - startScreenY!;
|
const moveHeight = moveScreenY - startScreenY!;
|
||||||
const moveWidth = moveScreenX - startScreenX!;
|
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;
|
if (Math.abs(moveWidth) > 30) pullStarted.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue