summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/TopBar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qml/TopBar.qml')
-rw-r--r--qt-mobile/qml/TopBar.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-mobile/qml/TopBar.qml b/qt-mobile/qml/TopBar.qml
index ed6f41182..964e9b8a4 100644
--- a/qt-mobile/qml/TopBar.qml
+++ b/qt-mobile/qml/TopBar.qml
@@ -48,4 +48,12 @@ Rectangle {
Layout.fillWidth: true
}
}
+ MouseArea {
+ anchors.fill: topPart
+ onClicked: {
+ if (stackView.depth == 1 && showingDiveList) {
+ scrollToTop()
+ }
+ }
+ }
}