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
|
||||
|
||||
TapHandler {
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer
|
||||
acceptedButtons: Qt.BackButton
|
||||
onTapped: root.pageLoader.moveThroughHistory(1)
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedPointerTypes: PointerDevice.GenericPointer
|
||||
acceptedButtons: Qt.ForwardButton
|
||||
onTapped: root.pageLoader.moveThroughHistory(-1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user