From 7f957380376f75e0cf953fd07c8f4b972a13413d Mon Sep 17 00:00:00 2001 From: Dejvino Date: Wed, 17 Nov 2021 20:12:27 +0100 Subject: [PATCH] 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. --- src/gui/GlobalTapHandlers.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/GlobalTapHandlers.qml b/src/gui/GlobalTapHandlers.qml index cca8ca4d..3560be5a 100644 --- a/src/gui/GlobalTapHandlers.qml +++ b/src/gui/GlobalTapHandlers.qml @@ -16,11 +16,13 @@ Item { implicitHeight: parent ? parent.height : 0 TapHandler { + acceptedPointerTypes: PointerDevice.GenericPointer acceptedButtons: Qt.BackButton onTapped: root.pageLoader.moveThroughHistory(1) } TapHandler { + acceptedPointerTypes: PointerDevice.GenericPointer acceptedButtons: Qt.ForwardButton onTapped: root.pageLoader.moveThroughHistory(-1) }