diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-17 19:27:45 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-17 19:27:45 -0500 |
| commit | 34abc91523de0c2632f725e2b2ffb39e8e0ef18d (patch) | |
| tree | d0510d11ccce5977f76630cc8e222ee7b4582ae6 /modules/controlcenter/ControlCenter.qml | |
| parent | controlcenter: renamed panel titles from settings to panel name (diff) | |
| download | caelestia-shell-34abc91523de0c2632f725e2b2ffb39e8e0ef18d.tar.gz caelestia-shell-34abc91523de0c2632f725e2b2ffb39e8e0ef18d.tar.bz2 caelestia-shell-34abc91523de0c2632f725e2b2ffb39e8e0ef18d.zip | |
controlcenter: prevented changing panes before opening animation completes
Diffstat (limited to 'modules/controlcenter/ControlCenter.qml')
| -rw-r--r-- | modules/controlcenter/ControlCenter.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/controlcenter/ControlCenter.qml b/modules/controlcenter/ControlCenter.qml index 8cdf01f..3642a33 100644 --- a/modules/controlcenter/ControlCenter.qml +++ b/modules/controlcenter/ControlCenter.qml @@ -64,6 +64,11 @@ Item { anchors.fill: parent function onWheel(event: WheelEvent): void { + // Prevent tab switching during initial opening animation to avoid blank pages + if (!panes.initialOpeningComplete) { + return; + } + if (event.angleDelta.y < 0) root.session.activeIndex = Math.min(root.session.activeIndex + 1, root.session.panes.length - 1); else if (event.angleDelta.y > 0) @@ -76,10 +81,13 @@ Item { screen: root.screen session: root.session + initialOpeningComplete: root.initialOpeningComplete } } Panes { + id: panes + Layout.fillWidth: true Layout.fillHeight: true @@ -88,4 +96,7 @@ Item { session: root.session } } + + // Expose initialOpeningComplete for NavRail to prevent tab switching during opening animation + readonly property bool initialOpeningComplete: panes.initialOpeningComplete } |