From 11991bdd142df2ae3704bceefafeb89b3d640517 Mon Sep 17 00:00:00 2001 From: Viranch Mehta Date: Wed, 4 Apr 2012 16:21:50 +0530 Subject: [PATCH] QML scrollbar: Timeout the scroll timer as soon as the arrow is pressed. This avoids getting no reaction when arrow is clicked very quickly. --- .../plasmacomponents/qml/private/ScrollBarDelegate.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/declarativeimports/plasmacomponents/qml/private/ScrollBarDelegate.qml b/declarativeimports/plasmacomponents/qml/private/ScrollBarDelegate.qml index 14c1ee797..02a869eb7 100644 --- a/declarativeimports/plasmacomponents/qml/private/ScrollBarDelegate.qml +++ b/declarativeimports/plasmacomponents/qml/private/ScrollBarDelegate.qml @@ -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)