mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-27 00:00:38 +00:00
Hide mouse cursor when OSD is hidden
This commit is contained in:
parent
6bb1d62c85
commit
9bdd19b28c
@ -150,9 +150,11 @@
|
||||
this.osdObserver = new MutationObserver(function(mutations) {
|
||||
if (target.classList.contains('videoOsdBottom-hidden')) {
|
||||
console.log('OSD hidden');
|
||||
document.body.style.cursor = 'none';
|
||||
window.api.player.setVideoRectangle(0, 0, 0, 0);
|
||||
} else {
|
||||
console.log('OSD shown');
|
||||
document.body.style.cursor = 'default';
|
||||
window.api.player.setVideoRectangle(0, 68 * window.devicePixelRatio, 0, -100 * window.devicePixelRatio);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user