Make middle click also work outside of image
This commit is contained in:
parent
66a44b5251
commit
b803c34338
@ -24,6 +24,12 @@ HFlickable {
|
||||
gesturePolicy: TapHandler.ReleaseWithinBounds
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.MiddleButton
|
||||
gesturePolicy: TapHandler.ReleaseWithinBounds
|
||||
onTapped: viewer.openExternallyRequested()
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.NoButton
|
||||
@ -127,18 +133,6 @@ HFlickable {
|
||||
}
|
||||
onDoubleTapped: viewer.toggleFulLScreen()
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.MiddleButton
|
||||
gesturePolicy: TapHandler.ReleaseWithinBounds
|
||||
onTapped: viewer.openExternallyRequested()
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
gesturePolicy: TapHandler.ReleaseWithinBounds
|
||||
onTapped: viewer.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user