mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
7919964805
commit
bb00365b5d
12 changed files with 92 additions and 32 deletions
14
dashboard-ui/bower_components/emby-webcomponents/fullscreen/fullscreen-doubleclick.js
vendored
Normal file
14
dashboard-ui/bower_components/emby-webcomponents/fullscreen/fullscreen-doubleclick.js
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
define(['dom', 'fullscreenManager'], function (dom, fullscreenManager) {
|
||||
|
||||
dom.addEventListener(window, 'dblclick', function () {
|
||||
|
||||
if (fullscreenManager.isFullScreen()) {
|
||||
fullscreenManager.exitFullscreen();
|
||||
} else {
|
||||
fullscreenManager.requestFullscreen();
|
||||
}
|
||||
|
||||
}, {
|
||||
passive: true
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue