Skip to content

Commit 9a1f94b

Browse files
authored
fix: toggle play only with left mouse button click (#1152)
1 parent 1981b13 commit 9a1f94b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tagstudio/qt/mixed/media_player.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,10 @@ def releaseMouse(self) -> None: # noqa: N802
312312
def mousePressEvent(self, event: QMouseEvent) -> None:
313313
# Pause media if background is clicked, with buffer around controls
314314
buffer: int = 6
315-
if event.y() < (self.height() - self.controls.height() - buffer):
315+
if (
316+
event.y() < (self.height() - self.controls.height() - buffer)
317+
and event.button() == Qt.MouseButton.LeftButton
318+
):
316319
self.toggle_play()
317320
return super().mousePressEvent(event)
318321

0 commit comments

Comments
 (0)