1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix image loading

This commit is contained in:
Luke Pulverenti 2015-06-16 00:52:01 -04:00
parent 46776f1eac
commit 0d59297b1b
86 changed files with 5857 additions and 273 deletions

View file

@ -19,10 +19,14 @@
// If less than 200, this happens on the home page
// Need to fix those before this can be set to 0
if (window.AppInfo && AppInfo.isNativeApp && $.browser.safari) {
return 10000;
}
var screens = $.browser.mobile ? 2 : 1;
// This helps eliminate the draw-in effect as you scroll
return screen.availHeight * screens;
return Math.max(screen.availHeight * screens, 1000);
}
$.fn.unveil = function () {