Overview: Only trigger middle click close with mouse/pen

For some reason, while touch doesn't have a middle button, the
taphandler for middle click close still triggered on tap. So make it
explicitly only support mouse/pen so we exclude touch events.

BUG: 445755
This commit is contained in:
Arjen Hiemstra 2021-11-24 15:08:33 +01:00
parent 9f93358bc1
commit dda45a7829

View file

@ -204,6 +204,7 @@ FocusScope {
}
TapHandler {
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
acceptedButtons: Qt.MiddleButton
onTapped: thumb.client.closeWindow()
}