refactor
This commit is contained in:
parent
3f4234d908
commit
e3c3702ec9
|
|
@ -137,13 +137,7 @@ function moving(event) {
|
||||||
const moveScreenY = getScreenY(event);
|
const moveScreenY = getScreenY(event);
|
||||||
|
|
||||||
const moveHeight = moveScreenY - startScreenY!;
|
const moveHeight = moveScreenY - startScreenY!;
|
||||||
if (moveHeight < 0) {
|
currentHeight = Math.min(Math.max(moveHeight, 0), maxFrameSize);
|
||||||
currentHeight = 0;
|
|
||||||
} else if (moveHeight >= maxFrameSize) {
|
|
||||||
currentHeight = maxFrameSize;
|
|
||||||
} else {
|
|
||||||
currentHeight = moveHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
isPullEnd = currentHeight >= refreshFrameSize;
|
isPullEnd = currentHeight >= refreshFrameSize;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue