This commit is contained in:
syuilo 2023-10-23 20:02:56 +09:00
parent 3f4234d908
commit e3c3702ec9
1 changed files with 1 additions and 7 deletions

View File

@ -137,13 +137,7 @@ function moving(event) {
const moveScreenY = getScreenY(event);
const moveHeight = moveScreenY - startScreenY!;
if (moveHeight < 0) {
currentHeight = 0;
} else if (moveHeight >= maxFrameSize) {
currentHeight = maxFrameSize;
} else {
currentHeight = moveHeight;
}
currentHeight = Math.min(Math.max(moveHeight, 0), maxFrameSize);
isPullEnd = currentHeight >= refreshFrameSize;
}