Commit 57e11c97 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4462 from anton-matosov/FactSliderAndScrolling

Add mouse area to the FactSliderPanel in order to avoid unwanted value changes while scrolling
parents 6895a5f6 9d3153fa
......@@ -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 {
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
......
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