mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreen: Don't animate if task switcher is visible
This commit is contained in:
parent
4e95a4abc3
commit
f99e8ff037
1 changed files with 7 additions and 4 deletions
|
|
@ -143,10 +143,13 @@ Item {
|
|||
target: MobileShell.WindowUtil
|
||||
|
||||
function onActiveWindowIsShellChanged() {
|
||||
if (MobileShell.WindowUtil.activeWindowIsShell && !taskSwitcher.visible) {
|
||||
itemContainer.zoomIn();
|
||||
} else {
|
||||
itemContainer.zoomOut();
|
||||
// only animate if homescreen is visible
|
||||
if (!taskSwitcher.visible) {
|
||||
if (MobileShell.WindowUtil.activeWindowIsShell) {
|
||||
itemContainer.zoomIn();
|
||||
} else {
|
||||
itemContainer.zoomOut();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue