mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
update events.d.ts
This commit is contained in:
1 parent
90915652aa
commit
677c99aa38
5 files changed
+28
-28
No files matched your search
@@ -10,20 +10,20 @@ export default function clickInit(art, events) {
|
||||
if (includeFromEvent(event, $player)) {
|
||||
art.isInput = event.target.tagName === 'INPUT';
|
||||
art.isFocus = true;
|
||||
art.emit('focus');
|
||||
art.emit('focus', event);
|
||||
} else {
|
||||
art.isInput = false;
|
||||
art.isFocus = false;
|
||||
art.emit('blur');
|
||||
art.emit('blur', event);
|
||||
}
|
||||
});
|
||||
|
||||
let clickTime = 0;
|
||||
events.proxy($video, 'click', () => {
|
||||
events.proxy($video, 'click', (event) => {
|
||||
const now = Date.now();
|
||||
|
||||
if (now - clickTime <= constructor.DB_CLICE_TIME) {
|
||||
art.emit('dblclick');
|
||||
art.emit('dblclick', event);
|
||||
|
||||
if (isMobile) {
|
||||
if (!art.isLock) {
|
||||
@@ -33,7 +33,7 @@ export default function clickInit(art, events) {
|
||||
art.fullscreen = !art.fullscreen;
|
||||
}
|
||||
} else {
|
||||
art.emit('click');
|
||||
art.emit('click', event);
|
||||
|
||||
if (!isMobile) {
|
||||
art.toggle();
|
||||
|
||||
Reference in new issue
Block a user