From 1d3ffa707dcf5b570410d91422669731d2bcd8a2 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 29 Dec 2021 10:47:19 -0500 Subject: [PATCH] startupfeedback: Optimize animation playback on slower devices with delay --- .../qml/components/StartupFeedback.qml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/components/mobileshell/qml/components/StartupFeedback.qml b/components/mobileshell/qml/components/StartupFeedback.qml index 6383179f..dec11752 100644 --- a/components/mobileshell/qml/components/StartupFeedback.qml +++ b/components/mobileshell/qml/components/StartupFeedback.qml @@ -144,33 +144,37 @@ Item { root.visible = true; } } + // slight pause to give slower devices time to catch up when the item becomes visible + PauseAnimation { duration: 50 } ParallelAnimation { + property real animationDuration: PlasmaCore.Units.longDuration + PlasmaCore.Units.shortDuration + ScaleAnimator { target: background from: background.scale to: 1 - duration: PlasmaCore.Units.longDuration - easing.type: Easing.InOutQuad + duration: animationDuration + easing.type: Easing.OutCubic } ScaleAnimator { target: iconParent from: iconParent.scale to: 1 - duration: PlasmaCore.Units.longDuration - easing.type: Easing.InOutQuad + duration: animationDuration + easing.type: Easing.OutCubic } XAnimator { target: backgroundParent from: backgroundParent.x to: 0 - duration: PlasmaCore.Units.longDuration + duration: animationDuration easing.type: Easing.OutCubic } YAnimator { target: backgroundParent from: backgroundParent.y to: 0 - duration: PlasmaCore.Units.longDuration + duration: animationDuration easing.type: Easing.OutCubic } }