diff --git a/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml b/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml index cc409aaf..dd0a9d4b 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml @@ -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() - } } } }