Index: sources/gui/qml/components/ValueControl.qml =================================================================== diff -u -r8b84749609138274fb1b899c7862239f12ea2f41 -r7d2122a9a4330ebc2ff4c22be36f32e9a82417ec --- sources/gui/qml/components/ValueControl.qml (.../ValueControl.qml) (revision 8b84749609138274fb1b899c7862239f12ea2f41) +++ sources/gui/qml/components/ValueControl.qml (.../ValueControl.qml) (revision 7d2122a9a4330ebc2ff4c22be36f32e9a82417ec) @@ -32,7 +32,6 @@ property bool canIncrement : active ? value > minimum : true property bool canDecrement : active ? value < maximum : true - property int holdInterval : 600 onActiveChanged : if ( active ) { _root.value = _root.defaultValue } @@ -83,21 +82,28 @@ property bool grabbed: false anchors.fill : parent - pressAndHoldInterval: _root.holdInterval + pressAndHoldInterval: 0 onClicked: { - if ( _root.editable ) { active = focus = true } + if ( _root.editable ) { + active = true + focus = true + } _slider.opacity = 0 } onReleased: { - grabbed = false + _sliderMouseArea.grabbed = true +. grabbed = false _slider.opacity = 0 } onPressAndHold: { - if ( _root.editable ) { _root.active = focus = true } + if ( _root.editable ) { + active = true + focus = true + } _sliderMouseArea.grabbed = true } @@ -125,8 +131,8 @@ target : _slider from : 0 to : 1 - duration: _root.holdInterval - running : _sliderMouseArea.pressed + duration: 350 + running : _sliderMouseArea.grabbed } Behavior on opacity { NumberAnimation { duration: 200 } }