From f99e8ff037f1760ebd54b772ea999d9689038c70 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 11 Apr 2022 17:43:38 -0400 Subject: [PATCH] homescreen: Don't animate if task switcher is visible --- components/mobileshell/qml/homescreen/HomeScreen.qml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/mobileshell/qml/homescreen/HomeScreen.qml b/components/mobileshell/qml/homescreen/HomeScreen.qml index b4a70290..b55ea3d8 100644 --- a/components/mobileshell/qml/homescreen/HomeScreen.qml +++ b/components/mobileshell/qml/homescreen/HomeScreen.qml @@ -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(); + } } } }