mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 00:08:31 +09:00
refactor
This commit is contained in:
parent
3f4234d908
commit
e3c3702ec9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user