Don't toggle pause on right mouse click

Co-authored-by: mrjvs <mistrjvs@gmail.com>
This commit is contained in:
Jip Fr 2023-03-12 22:23:14 +01:00
parent 5e8ad2e996
commit 93fb343fa9

View File

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