effects/windowview: Fix "Unable to assign [undefined] to int"

animationDuration is not defined in WindowViewEffect. Use
heap.animationDuration instead.
This commit is contained in:
Fushan Wen 2022-04-22 20:56:47 +08:00
parent 31c069ebf3
commit c4a0f20f4a
No known key found for this signature in database
GPG key ID: 2E48D1487C91DCAA
2 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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 }
}
}
}