Commit 9d3153fa authored by Anton Matosov's avatar Anton Matosov

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

parent ef3d5401
...@@ -12,6 +12,7 @@ import QtQuick 2.5 ...@@ -12,6 +12,7 @@ import QtQuick 2.5
import QtQuick.Controls 1.4 import QtQuick.Controls 1.4
import QGroundControl.FactSystem 1.0 import QGroundControl.FactSystem 1.0
import QGroundControl.FactControls 1.0
import QGroundControl.Palette 1.0 import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0 import QGroundControl.Controls 1.0
import QGroundControl.ScreenTools 1.0 import QGroundControl.ScreenTools 1.0
...@@ -110,6 +111,25 @@ Column { ...@@ -110,6 +111,25 @@ Column {
onValueChanged: { onValueChanged: {
if (_loadComplete) { if (_loadComplete) {
fact.value = value 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 } // Slider
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment