mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Close sliding panel as soon as it's off the screen for no delay
This commit is contained in:
parent
f231b04bdc
commit
17938b31ae
1 changed files with 5 additions and 1 deletions
|
|
@ -67,7 +67,11 @@ NanoShell.FullScreenOverlay {
|
|||
}
|
||||
function updateState() {
|
||||
cancelAnimations();
|
||||
if (window.direction === SlidingPanel.MovementDirection.None) {
|
||||
if (window.offset <= -headerHeight) {
|
||||
// close immediately, so that we don't have to wait units.longDuration
|
||||
window.visible = false;
|
||||
window.closed();
|
||||
} else if (window.direction === SlidingPanel.MovementDirection.None) {
|
||||
if (offset < openThreshold) {
|
||||
close();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue