Navigate page history with mouse back/forward

This commit is contained in:
miruka
2021-04-09 01:55:12 -04:00
parent b9ea61e133
commit 58b4667c31
3 changed files with 41 additions and 0 deletions

View File

@@ -157,6 +157,11 @@ Item {
MainPane {
id: mainPane
maximumSize: parent.width - theme.minimumSupportedWidth * 1.5
// Drawers (side panes) are actually Popups, which are considered to be
// different "layer". Input handlers will only get events occuring
// in the layer they were declared in.
GlobalTapHandlers { pageLoader: pageLoader }
}
PageLoader {
@@ -169,5 +174,7 @@ Item {
mainPane.visibleSize
visible: mainPane.visibleSize < mainUI.width
GlobalTapHandlers { pageLoader: parent }
}
}