mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2129 from dmitrylyzo/nodoubleclickfullscreen
Prevent doubleclick on buttons from bubbling to video for fullscreen (alternative)
This commit is contained in:
commit
bb5dcb42e5
1 changed files with 2 additions and 1 deletions
|
@ -1469,7 +1469,8 @@ import { appRouter } from '../../../components/appRouter';
|
|||
dom.addEventListener(view, 'dblclick', onDoubleClick, {});
|
||||
} else {
|
||||
const options = { passive: true };
|
||||
dom.addEventListener(view, 'dblclick', function () {
|
||||
dom.addEventListener(view, 'dblclick', (e) => {
|
||||
if (e.target !== view) return;
|
||||
playbackManager.toggleFullscreen(currentPlayer);
|
||||
}, options);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue