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:
parent
f9ec9e3b52
commit
485ccfa116
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue