Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Video): context menu was not working on Firefox #428

Merged
merged 9 commits into from
Jul 21, 2023
2 changes: 1 addition & 1 deletion src/routes/MetaDetails/VideosList/Video/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Video = ({ className, id, title, thumbnail, episode, released, upcoming, w
const popupLabelOnContextMenu = React.useCallback((event) => {
if (!event.nativeEvent.togglePopupPrevented && !event.nativeEvent.ctrlKey) {
event.preventDefault();
if (event.nativeEvent.pointerType === 'mouse') {
if (event.nativeEvent.pointerType === 'mouse' || (event.nativeEvent.button === 2 && event.nativeEvent.buttons === 0)) {
toggleMenu();
}
}
Expand Down
1 change: 1 addition & 0 deletions src/routes/MetaDetails/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
}

.background-image {
pointer-events: none;
display: block;
width: 100%;
height: 100%;
Expand Down