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