From 93fb343fa9044cec071547987c4ec10a2cff083b Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sun, 12 Mar 2023 22:23:14 +0100 Subject: [PATCH] Don't toggle pause on right mouse click Co-authored-by: mrjvs --- src/video/components/actions/BackdropAction.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/components/actions/BackdropAction.tsx b/src/video/components/actions/BackdropAction.tsx index dcceff60..55599df5 100644 --- a/src/video/components/actions/BackdropAction.tsx +++ b/src/video/components/actions/BackdropAction.tsx @@ -47,6 +47,10 @@ export function BackdropAction(props: BackdropActionProps) { return; } + if ((e as React.MouseEvent).button !== 0) { + return; // not main button (left click), exit event + } + setTimeout(() => { if (Date.now() - lastTouchEnd < 200) { setMoved(!moved);