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