homescreen: Don't animate if task switcher is visible

This commit is contained in:
Devin Lin 2022-04-11 17:43:38 -04:00
parent 4e95a4abc3
commit f99e8ff037

View file

@ -143,13 +143,16 @@ Item {
target: MobileShell.WindowUtil target: MobileShell.WindowUtil
function onActiveWindowIsShellChanged() { function onActiveWindowIsShellChanged() {
if (MobileShell.WindowUtil.activeWindowIsShell && !taskSwitcher.visible) { // only animate if homescreen is visible
if (!taskSwitcher.visible) {
if (MobileShell.WindowUtil.activeWindowIsShell) {
itemContainer.zoomIn(); itemContainer.zoomIn();
} else { } else {
itemContainer.zoomOut(); itemContainer.zoomOut();
} }
} }
} }
}
transform: Scale { transform: Scale {
origin.x: itemContainer.width / 2; origin.x: itemContainer.width / 2;