Browse Source

Add mouse area to the FactSliderPanel in order to avoid unwanted value changes while scrolling

QGC4.4
Anton Matosov 8 years ago
parent
commit
9d3153fad7
  1. 20
      src/QmlControls/FactSliderPanel.qml

20
src/QmlControls/FactSliderPanel.qml

@ -12,6 +12,7 @@ import QtQuick 2.5 @@ -12,6 +12,7 @@ import QtQuick 2.5
import QtQuick.Controls 1.4
import QGroundControl.FactSystem 1.0
import QGroundControl.FactControls 1.0
import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0
import QGroundControl.ScreenTools 1.0
@ -110,6 +111,25 @@ Column { @@ -110,6 +111,25 @@ Column {
onValueChanged: {
if (_loadComplete) {
fact.value = value
}
}
activeFocusOnPress: true
MultiPointTouchArea {
anchors.fill: parent
minimumTouchPoints: 1
maximumTouchPoints: 1
mouseEnabled: false
}
// Block wheel events
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
onWheel: {
wheel.accepted = true
}
}
} // Slider

Loading…
Cancel
Save