mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #5517 from jellyfin-web/release-10.9.z
Fix video osd not hiding in experimental layout
Original-merge: ea1d069e90
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
cb01afce02
commit
017734a0bb
7 changed files with 117 additions and 29 deletions
|
@ -28,6 +28,7 @@ import LibraryMenu from '../../../scripts/libraryMenu';
|
|||
import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components/backdrop/backdrop';
|
||||
import { pluginManager } from '../../../components/pluginManager';
|
||||
import { PluginType } from '../../../types/plugin.ts';
|
||||
import { EventType } from 'types/eventType';
|
||||
|
||||
const TICKS_PER_MINUTE = 600000000;
|
||||
const TICKS_PER_SECOND = 10000000;
|
||||
|
@ -280,12 +281,14 @@ export default function (view) {
|
|||
let mouseIsDown = false;
|
||||
|
||||
function showOsd(focusElement) {
|
||||
Events.trigger(document, EventType.SHOW_VIDEO_OSD, [ true ]);
|
||||
slideDownToShow(headerElement);
|
||||
showMainOsdControls(focusElement);
|
||||
resetIdle();
|
||||
}
|
||||
|
||||
function hideOsd() {
|
||||
Events.trigger(document, EventType.SHOW_VIDEO_OSD, [ false ]);
|
||||
slideUpToHide(headerElement);
|
||||
hideMainOsdControls();
|
||||
mouseManager.hideCursor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue