mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-29 00:28:43 +00:00
Don't toggle pause on right mouse click
Co-authored-by: mrjvs <mistrjvs@gmail.com>
This commit is contained in:
parent
5e8ad2e996
commit
93fb343fa9
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue