mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
fix event.composedPath
This commit is contained in:
1 parent
25b041ad8c
commit
c7a351bc55
3 files changed
+3
-3
No files matched your search
@@ -3341,7 +3341,7 @@
|
||||
function clickInit(art, events) {
|
||||
var $player = art.template.$player;
|
||||
events.proxy(document, ['click', 'contextmenu'], function (event) {
|
||||
if (event.composedPath().indexOf($player) > -1) {
|
||||
if (event.composedPath && event.composedPath().indexOf($player) > -1) {
|
||||
art.isFocus = true;
|
||||
art.emit('focus');
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user