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

Prevent nested slideshow

This commit is contained in:
Dmitry Lyzo 2020-03-10 18:50:31 +03:00
parent f9ec9e3b52
commit 485ccfa116

View file

@ -188,6 +188,11 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
stopInterval();
});
// Blur foreign element to prevent starting of "nested" slideshow
if (document.activeElement && !dlg.contains(document.activeElement)) {
document.activeElement.blur();
}
inputManager.on(window, onInputCommand);
document.addEventListener((window.PointerEvent ? 'pointermove' : 'mousemove'), onPointerMove);