startupfeedback: Improve animation behaviour with activated apps

This commit is contained in:
Devin Lin 2023-11-15 20:32:06 -08:00
parent 871bee83c0
commit a7ac976263

View file

@ -67,8 +67,14 @@ MouseArea { // use mousearea to ensure clicks don't go behind
target: WindowPlugin.WindowUtil
function onAppActivationStarted(appId, iconName) {
if (!openAnimComplex.running) {
iconParent.scale = 0.5;
background.scale = 0.5;
backgroundParent.x = 0
backgroundParent.y = 0
icon.source = iconName
openAnimSimple.restart();
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 }