From cfeca03e4865469764a63fb22566bfab3cc71adc 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 --- 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 5489879ce8..c496c11f32 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 } }