mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 01:25:05 +01: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
@ -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 New Issue
Block a user