1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00
This commit is contained in:
syuilo 2023-10-23 20:02:56 +09:00
parent 3f4234d908
commit e3c3702ec9

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