Commit f069e6da authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

explore, make the first item click hide the description

This replaces a window level mouse area that made the first click to
be missed.
parent e742c1dc
......@@ -90,6 +90,7 @@ Item {
onStartedChanged: started ? retouch.start() : retouch.stop()
onPressed: {
Activity.items.instruction.visible = false
if (Activity.items.currentLevel == 0) {
audioEffects.play(animal.audio);
displayDescription(animal)
......
......@@ -205,11 +205,6 @@ ActivityBase {
}
}
MouseArea {
anchors.fill: parent
onClicked: instruction.visible = false
enabled: instruction.visible
}
Rectangle {
id: instruction
width: parent.width * 0.9
......@@ -234,6 +229,11 @@ ActivityBase {
width: parent.width * 0.9
wrapMode: Text.Wrap
}
MouseArea {
anchors.fill: parent
onClicked: instruction.visible = false
enabled: instruction.visible
}
}
DialogHelp {
......
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