1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Skip bubbled dblclick event

This commit is contained in:
Dmitry Lyzo 2020-11-26 19:13:47 +03:00
parent c4ea150edb
commit 0bdcfbd702

View file

@ -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);
}