mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 12:01: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
@@ -1,7 +1,7 @@
|
||||
export default function clickInit(art, events) {
|
||||
const { $player } = art.template;
|
||||
events.proxy(document, ['click', 'contextmenu'], 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