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:
parent
9a4ababd9a
commit
7f95738037
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user