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,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();
}
}
}
}