From 7465dcc9de58973da932a47449d81ef6668e0f72 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Mon, 2 Nov 2020 12:48:18 +0100 Subject: [PATCH] kwinrules: Limit hightlight scrolling duration By default, the rules list moves to the hightlighted item (the one being edited) with a constant velocity. This can be too slow when the list contains hundreds of items. By setting `highlightMoveDuration` we set a maximum limit for this animation. BUG: 428139 (cherry picked from commit cfeca03e4865469764a63fb22566bfab3cc71adc) --- kcmkwin/kwinrules/package/contents/ui/RulesList.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcmkwin/kwinrules/package/contents/ui/RulesList.qml b/kcmkwin/kwinrules/package/contents/ui/RulesList.qml index 976a5c2da7..d2c5d41be1 100644 --- a/kcmkwin/kwinrules/package/contents/ui/RulesList.qml +++ b/kcmkwin/kwinrules/package/contents/ui/RulesList.qml @@ -48,6 +48,8 @@ ScrollViewKCM { sourceComponent: ruleBookDelegate } + highlightMoveDuration: Kirigami.Units.longDuration + displaced: Transition { NumberAnimation { properties: "y"; duration: Kirigami.Units.longDuration } }