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
44f3665a55
commit
019092dd11
3 files changed
+8
-1
No files matched your search
@@ -17,6 +17,10 @@ export default function eventInit(art, player) {
|
||||
player.toggle();
|
||||
});
|
||||
|
||||
proxy($video, 'dblclick', () => {
|
||||
player.fullscreenToggle = true;
|
||||
});
|
||||
|
||||
config.events.forEach((eventName) => {
|
||||
proxy($video, eventName, (event) => {
|
||||
art.emit(`video:${event.type}`, event);
|
||||
|
||||
Reference in new issue
Block a user