mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
fix #395 opacity flicker
This commit is contained in:
parent
e75f46a8b7
commit
4c47b5617a
@ -41,10 +41,14 @@
|
||||
}
|
||||
|
||||
$(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', function () {
|
||||
|
||||
var nowPlayingBar = ('#nowPlayingBar');
|
||||
$('.itemVideo').unbind('mousemove keydown scroll', idleHandler);
|
||||
if (isFullScreen()) {
|
||||
$('.itemVideo').addClass('fullscreenVideo');
|
||||
idleState = true;
|
||||
$('.itemVideo').bind('mousemove keydown scroll', idleHandler).trigger('mousemove');
|
||||
} else {
|
||||
$(".mediaButton,.currentTime,.nowPlayingMediaInfo,.mediaSlider,.barBackground", nowPlayingBar).removeClass("highPosition");
|
||||
$('.itemVideo').removeClass('fullscreenVideo');
|
||||
}
|
||||
|
||||
@ -951,8 +955,6 @@
|
||||
};
|
||||
|
||||
self.toggleFullscreen = function () {
|
||||
|
||||
$('.itemVideo').unbind('mousemove keydown scroll', idleHandler);
|
||||
if (isFullScreen()) {
|
||||
if (document.cancelFullScreen) { document.cancelFullScreen(); }
|
||||
else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }
|
||||
@ -963,8 +965,6 @@
|
||||
|
||||
}
|
||||
} else {
|
||||
idleState = true;
|
||||
$('.itemVideo').bind('mousemove keydown scroll', idleHandler).trigger('mousemove');
|
||||
requestFullScreen(document.body);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user