Browse Source

Don't toggle pause on right mouse click

Co-authored-by: mrjvs <mistrjvs@gmail.com>
pull/200/head
Jip Fr 2 years ago
parent
commit
93fb343fa9
  1. 4
      src/video/components/actions/BackdropAction.tsx

4
src/video/components/actions/BackdropAction.tsx

@ -47,6 +47,10 @@ export function BackdropAction(props: BackdropActionProps) { @@ -47,6 +47,10 @@ export function BackdropAction(props: BackdropActionProps) {
return;
}
if ((e as React.MouseEvent<HTMLDivElement>).button !== 0) {
return; // not main button (left click), exit event
}
setTimeout(() => {
if (Date.now() - lastTouchEnd < 200) {
setMoved(!moved);

Loading…
Cancel
Save