mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
21 lines
428 B
JavaScript
21 lines
428 B
JavaScript
|
(function () {
|
|||
|
|
|||
|
function forceScroll() {
|
|||
|
|
|||
|
var doc = $(document);
|
|||
|
|
|||
|
// Try to make it react quicker to the orientation change
|
|||
|
doc.scrollTop(doc.scrollTop() + 1);
|
|||
|
}
|
|||
|
|
|||
|
function onOrientationChange() {
|
|||
|
|
|||
|
forceScroll();
|
|||
|
for (var i = 0; i <= 500; i += 100) {
|
|||
|
setTimeout(forceScroll, i);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
$(window).on('orientationchange', onOrientationChange);
|
|||
|
|
|||
|
})();
|