From 48014cb8e57979c84c34937cc871f8d84c30af91 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 19 Jul 2020 20:22:36 -0400 Subject: [PATCH] Allow right clicking outside of image to close it --- TODO.md | 1 - src/gui/Popups/ImageViewerPopup.qml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 178dfc19..d090684a 100644 --- a/TODO.md +++ b/TODO.md @@ -8,7 +8,6 @@ - buttons - keyboard controls - prevent drag-scrolling timeline when image opened - - right click in dark space of image viewer - clipboard preview doesn't update when copied image changes until second time - Avatar tooltip can get displayed in front of presence menu diff --git a/src/gui/Popups/ImageViewerPopup.qml b/src/gui/Popups/ImageViewerPopup.qml index f95d8af6..ab2d01bf 100644 --- a/src/gui/Popups/ImageViewerPopup.qml +++ b/src/gui/Popups/ImageViewerPopup.qml @@ -58,6 +58,7 @@ HPopup { ScrollBar.vertical: null TapHandler { + acceptedButtons: Qt.LeftButton | Qt.RightButton onTapped: popup.close() gesturePolicy: TapHandler.ReleaseWithinBounds }