GlobalTapHandlers: limit acceptedPointerTypes to mouse

By default, TapHandler is used for all input types. GlobalTapHandlers
was blocking finger touch events from reaching the underlying elements,
breaking the app for mobile devices with a touch screen.
This commit is contained in:
Dejvino 2021-11-17 20:12:27 +01:00
parent 9a4ababd9a
commit 7f95738037

View File

@ -16,11 +16,13 @@ Item {
implicitHeight: parent ? parent.height : 0 implicitHeight: parent ? parent.height : 0
TapHandler { TapHandler {
acceptedPointerTypes: PointerDevice.GenericPointer
acceptedButtons: Qt.BackButton acceptedButtons: Qt.BackButton
onTapped: root.pageLoader.moveThroughHistory(1) onTapped: root.pageLoader.moveThroughHistory(1)
} }
TapHandler { TapHandler {
acceptedPointerTypes: PointerDevice.GenericPointer
acceptedButtons: Qt.ForwardButton acceptedButtons: Qt.ForwardButton
onTapped: root.pageLoader.moveThroughHistory(-1) onTapped: root.pageLoader.moveThroughHistory(-1)
} }