Use proper target property

This commit is contained in:
Dmitry Lyzo 2020-07-08 14:23:59 +03:00
parent 6139d936e2
commit 1be111eeef

View File

@ -1102,7 +1102,7 @@ define(['playbackManager', 'dom', 'inputManager', 'datetime', 'itemHelper', 'med
var clickedElement;
function onKeyDown(e) {
clickedElement = e.srcElement;
clickedElement = e.target;
var key = keyboardnavigation.getKeyName(e);
@ -1223,7 +1223,7 @@ define(['playbackManager', 'dom', 'inputManager', 'datetime', 'itemHelper', 'med
}
function onWindowMouseDown(e) {
clickedElement = e.srcElement;
clickedElement = e.target;
lockOsd();
}
@ -1232,7 +1232,7 @@ define(['playbackManager', 'dom', 'inputManager', 'datetime', 'itemHelper', 'med
}
function onWindowTouchStart(e) {
clickedElement = e.srcElement;
clickedElement = e.target;
lockOsd();
}