mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-28 22:01:24 +00:00
fix: toggle play only with left mouse button click (#1152)
This commit is contained in:
@@ -312,7 +312,10 @@ class MediaPlayer(QGraphicsView):
|
||||
def mousePressEvent(self, event: QMouseEvent) -> None:
|
||||
# Pause media if background is clicked, with buffer around controls
|
||||
buffer: int = 6
|
||||
if event.y() < (self.height() - self.controls.height() - buffer):
|
||||
if (
|
||||
event.y() < (self.height() - self.controls.height() - buffer)
|
||||
and event.button() == Qt.MouseButton.LeftButton
|
||||
):
|
||||
self.toggle_play()
|
||||
return super().mousePressEvent(event)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user