From 5cf4320040c9e550a8f81d652e7bf6ad41c223b4 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Fri, 16 Sep 2022 20:36:27 +0300 Subject: [PATCH] effects/desktopgrid: Replace highly opmitized animators with animations which work Unfortunately, *Animator QML types have some problems with rendering, sometimes affecting general smoothness, other times (like here, for me) just not animating entirely. On my NVIDIA graphics system the animation or a desktop returning from drag just looks like a freeze for a second, then it suddenly jumps back to {0,0}. So let's just replace with less optimal NumberAnimation which works fine. FIXED-IN: 5.26 --- src/effects/desktopgrid/qml/DesktopView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/desktopgrid/qml/DesktopView.qml b/src/effects/desktopgrid/qml/DesktopView.qml index bcbb0e81da..b51b11d377 100644 --- a/src/effects/desktopgrid/qml/DesktopView.qml +++ b/src/effects/desktopgrid/qml/DesktopView.qml @@ -145,7 +145,7 @@ FocusScope { } Behavior on x { enabled: !dragHandler.active - XAnimator { + NumberAnimation { id: xAnim duration: container.effect.animationDuration easing.type: Easing.OutCubic @@ -153,7 +153,7 @@ FocusScope { } Behavior on y { enabled: !dragHandler.active - YAnimator { + NumberAnimation { id: yAnim duration: container.effect.animationDuration easing.type: Easing.OutCubic