mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 02:51:49 +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;
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user