aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gottfried <sebastian.gottfried@posteo.de>2016-11-14 09:39:23 (GMT)
committerSebastian Gottfried <sebastian.gottfried@posteo.de>2016-11-14 09:39:28 (GMT)
commit7cca7d0d97034db48bf8d02dbf59052767c7ce8d (patch)
treedeb9e28dc8ca106db0fb7633beb99ee2410a6ad4
parent24f41455a4c0fd00a99ea1cd5311df896813a2e5 (diff)
Training Widget: Fix Scroll Bar Mouse Interaction
There was an other mouse area on top of the scroll bar capturing all mouse events meant for scroll bar. Changing the stacking order fixed this.
-rw-r--r--src/qml/TrainingWidget.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/TrainingWidget.qml b/src/qml/TrainingWidget.qml
index ee304c0..f44fa54 100644
--- a/src/qml/TrainingWidget.qml
+++ b/src/qml/TrainingWidget.qml
@@ -53,6 +53,11 @@ FocusScope {
}
}
+ MouseArea {
+ anchors.fill: parent
+ onClicked: trainingLine.forceActiveFocus()
+ }
+
ScrollView {
anchors.fill: parent
Flickable
@@ -185,11 +190,6 @@ FocusScope {
}
}
- MouseArea {
- anchors.fill: parent
- onClicked: trainingLine.forceActiveFocus()
- }
-
KeyItem {
id: hintKey
parent: trainingWidget.overlayContainer