From c4a0f20f4a603357e0d7afdb8c3a8136bd361150 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Fri, 22 Apr 2022 20:56:47 +0800 Subject: [PATCH] effects/windowview: Fix "Unable to assign [undefined] to int" animationDuration is not defined in WindowViewEffect. Use heap.animationDuration instead. --- src/effects/private/qml/WindowHeap.qml | 4 ++-- src/effects/windowview/qml/main.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/effects/private/qml/WindowHeap.qml b/src/effects/private/qml/WindowHeap.qml index 133895e409..52fdf5f759 100644 --- a/src/effects/private/qml/WindowHeap.qml +++ b/src/effects/private/qml/WindowHeap.qml @@ -73,7 +73,7 @@ FocusScope { component TweenBehavior : Behavior { enabled: thumb.state !== "partial" && heap.animationEnabled && !thumb.activeDragHandler.active NumberAnimation { - duration: effect.animationDuration + duration: heap.animationDuration easing.type: Easing.OutCubic } } @@ -121,7 +121,7 @@ FocusScope { to: "normal" enabled: heap.animationEnabled NumberAnimation { - duration: effect.animationDuration + duration: heap.animationDuration properties: "x, y, width, height, opacity" easing.type: Easing.OutCubic } diff --git a/src/effects/windowview/qml/main.qml b/src/effects/windowview/qml/main.qml index e9988d34d8..ffd7da6ef0 100644 --- a/src/effects/windowview/qml/main.qml +++ b/src/effects/windowview/qml/main.qml @@ -42,7 +42,7 @@ Item { layer.effect: FastBlur { radius: container.organized ? 64 : 0 Behavior on radius { - NumberAnimation { duration: effect.animationDuration; easing.type: Easing.OutCubic } + NumberAnimation { duration: container.animationDuration; easing.type: Easing.OutCubic } } } }