mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Made cursor hide on OSD hide.
Cursor shows on OSD show. Co-authored-by: Esaias Tilly <esaias@tillys.se>
This commit is contained in:
parent
0595488a3f
commit
3ffd2bc4b9
2 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import playbackManager from 'playbackManager';
|
||||
import dom from 'dom';
|
||||
import inputManager from 'inputManager';
|
||||
import mouseManager from 'mouseManager';
|
||||
import datetime from 'datetime';
|
||||
import itemHelper from 'itemHelper';
|
||||
import mediaInfo from 'mediaInfo';
|
||||
|
@ -421,6 +422,9 @@ import 'css!assets/css/videoosd';
|
|||
elem.classList.remove('hide');
|
||||
elem.classList.remove('videoOsdBottom-hidden');
|
||||
|
||||
mouseManager.removeIdleClasses(); // Remove Idle Classes To Show Cursor
|
||||
mouseManager.lastMouseInputTime = new Date().getTime(); // Reset Mouse Input Time
|
||||
|
||||
if (!layoutManager.mobile) {
|
||||
setTimeout(function () {
|
||||
focusManager.focus(elem.querySelector('.btnPause'));
|
||||
|
@ -435,6 +439,9 @@ import 'css!assets/css/videoosd';
|
|||
const elem = osdBottomElement;
|
||||
clearHideAnimationEventListeners(elem);
|
||||
elem.classList.add('videoOsdBottom-hidden');
|
||||
|
||||
mouseManager.addIdleClasses(); // Add Idle Classes To Hide Cursor
|
||||
|
||||
dom.addEventListener(elem, transitionEndEventName, onHideAnimationComplete, {
|
||||
once: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue