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:
Viranch Mehta 2012-04-04 16:21:50 +05:30
parent 021ca8c08a
commit 11991bdd14

View File

@ -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)