From a7ac976263c4ac737ba3d349c3410ccc2ea35af0 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 15 Nov 2023 20:32:06 -0800 Subject: [PATCH] startupfeedback: Improve animation behaviour with activated apps --- .../mobileshell/qml/components/StartupFeedback.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/components/mobileshell/qml/components/StartupFeedback.qml b/components/mobileshell/qml/components/StartupFeedback.qml index b1ea49fe..c6856a58 100644 --- a/components/mobileshell/qml/components/StartupFeedback.qml +++ b/components/mobileshell/qml/components/StartupFeedback.qml @@ -67,8 +67,14 @@ MouseArea { // use mousearea to ensure clicks don't go behind target: WindowPlugin.WindowUtil function onAppActivationStarted(appId, iconName) { - icon.source = iconName - openAnimSimple.restart(); + if (!openAnimComplex.running) { + iconParent.scale = 0.5; + background.scale = 0.5; + backgroundParent.x = 0 + backgroundParent.y = 0 + icon.source = iconName + openAnimComplex.restart(); + } } } @@ -87,6 +93,7 @@ MouseArea { // use mousearea to ensure clicks don't go behind root.visible = true; } } + // slight pause to give slower devices time to catch up when the item becomes visible PauseAnimation { duration: 20 }