mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 19:01: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
@@ -1159,6 +1159,9 @@
|
||||
proxy($video, 'click', function () {
|
||||
player.toggle();
|
||||
});
|
||||
proxy($video, 'dblclick', function () {
|
||||
player.fullscreenToggle = true;
|
||||
});
|
||||
config.events.forEach(function (eventName) {
|
||||
proxy($video, eventName, function (event) {
|
||||
art.emit("video:".concat(event.type), event);
|
||||
|
||||
Reference in new issue
Block a user