QML scrollbar: Timeout the scroll timer as soon as the arrow is pressed. This avoids getting no reaction when arrow is clicked very quickly.
This commit is contained in:
parent
021ca8c08a
commit
11991bdd14
@ -139,11 +139,13 @@ PlasmaCore.FrameSvgItem {
|
||||
anchors.fill: parent
|
||||
enabled: scrollbar.enabled
|
||||
hoverEnabled: true
|
||||
|
||||
Timer {
|
||||
id: leftTimer
|
||||
interval: scrollbar.scrollButtonInterval;
|
||||
running: parent.pressed
|
||||
repeat: true
|
||||
triggeredOnStart: true
|
||||
onTriggered: {
|
||||
background.forceActiveFocus()
|
||||
if (inverted) {
|
||||
@ -187,11 +189,13 @@ PlasmaCore.FrameSvgItem {
|
||||
anchors.fill: parent
|
||||
enabled: scrollbar.enabled
|
||||
hoverEnabled: true
|
||||
|
||||
Timer {
|
||||
id: rightTimer
|
||||
interval: scrollbar.scrollButtonInterval;
|
||||
running: parent.pressed;
|
||||
repeat: true
|
||||
triggeredOnStart: true
|
||||
onTriggered: {
|
||||
background.forceActiveFocus();
|
||||
if (inverted)
|
||||
|
Loading…
Reference in New Issue
Block a user