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 cfeca03e48)
icc-effect-5.20.5
Ismael Asensio 2020-11-02 12:48:18 +01:00
parent 2ce464a15a
commit 7465dcc9de
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ ScrollViewKCM {
sourceComponent: ruleBookDelegate
}
highlightMoveDuration: Kirigami.Units.longDuration
displaced: Transition {
NumberAnimation { properties: "y"; duration: Kirigami.Units.longDuration }
}