mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
add dblclick event
This commit is contained in:
1 parent
6ad6e8fddc
commit
9697a61526
4 files changed
+52
-23
No files matched your search
@@ -13,16 +13,6 @@ export default function eventInit(art) {
|
||||
let reconnectTime = 0;
|
||||
const maxReconnectTime = 5;
|
||||
|
||||
proxy($video, 'click', () => {
|
||||
if (!isMobile) {
|
||||
art.toggle();
|
||||
}
|
||||
});
|
||||
|
||||
proxy($video, 'dblclick', () => {
|
||||
art.fullscreen = !art.fullscreen;
|
||||
});
|
||||
|
||||
for (let index = 0; index < config.events.length; index++) {
|
||||
proxy($video, config.events[index], (event) => {
|
||||
art.emit(`video:${event.type}`, event);
|
||||
|
||||
Reference in new issue
Block a user