Allow right clicking outside of image to close it

This commit is contained in:
miruka 2020-07-19 20:22:36 -04:00
parent 8053bd7d01
commit 48014cb8e5
2 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,6 @@
- buttons - buttons
- keyboard controls - keyboard controls
- prevent drag-scrolling timeline when image opened - 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 - clipboard preview doesn't update when copied image changes until second time
- Avatar tooltip can get displayed in front of presence menu - Avatar tooltip can get displayed in front of presence menu

View File

@ -58,6 +58,7 @@ HPopup {
ScrollBar.vertical: null ScrollBar.vertical: null
TapHandler { TapHandler {
acceptedButtons: Qt.LeftButton | Qt.RightButton
onTapped: popup.close() onTapped: popup.close()
gesturePolicy: TapHandler.ReleaseWithinBounds gesturePolicy: TapHandler.ReleaseWithinBounds
} }