mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 14:43:09 +00:00
fix the math for unlocking
This commit is contained in:
parent
35fa1e62c8
commit
578f998f38
1 changed files with 1 additions and 1 deletions
|
|
@ -404,7 +404,7 @@ MouseEventListener {
|
||||||
|
|
||||||
//scrolling up
|
//scrolling up
|
||||||
} else if (verticalVelocity < 0 && contentY < -headerItem.height + root.height &&
|
} else if (verticalVelocity < 0 && contentY < -headerItem.height + root.height &&
|
||||||
contentY < (-headerItem.height + root.height/6)) {
|
contentY < (-headerItem.height + root.height/6*5)) {
|
||||||
scrollAnim.to = -headerItem.height;
|
scrollAnim.to = -headerItem.height;
|
||||||
scrollAnim.running = true;
|
scrollAnim.running = true;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue