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:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user