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 () {
|
$(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', function () {
|
||||||
|
var nowPlayingBar = ('#nowPlayingBar');
|
||||||
|
$('.itemVideo').unbind('mousemove keydown scroll', idleHandler);
|
||||||
if (isFullScreen()) {
|
if (isFullScreen()) {
|
||||||
$('.itemVideo').addClass('fullscreenVideo');
|
$('.itemVideo').addClass('fullscreenVideo');
|
||||||
|
idleState = true;
|
||||||
|
$('.itemVideo').bind('mousemove keydown scroll', idleHandler).trigger('mousemove');
|
||||||
} else {
|
} else {
|
||||||
|
$(".mediaButton,.currentTime,.nowPlayingMediaInfo,.mediaSlider,.barBackground", nowPlayingBar).removeClass("highPosition");
|
||||||
$('.itemVideo').removeClass('fullscreenVideo');
|
$('.itemVideo').removeClass('fullscreenVideo');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -951,8 +955,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
self.toggleFullscreen = function () {
|
self.toggleFullscreen = function () {
|
||||||
|
|
||||||
$('.itemVideo').unbind('mousemove keydown scroll', idleHandler);
|
|
||||||
if (isFullScreen()) {
|
if (isFullScreen()) {
|
||||||
if (document.cancelFullScreen) { document.cancelFullScreen(); }
|
if (document.cancelFullScreen) { document.cancelFullScreen(); }
|
||||||
else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }
|
else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }
|
||||||
@ -963,8 +965,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
idleState = true;
|
|
||||||
$('.itemVideo').bind('mousemove keydown scroll', idleHandler).trigger('mousemove');
|
|
||||||
requestFullScreen(document.body);
|
requestFullScreen(document.body);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user