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

fix unveil when tabbing away and back

This commit is contained in:
Luke Pulverenti 2015-07-22 11:52:13 -04:00
parent 68526e2c1d
commit 13c3281ad0
4 changed files with 7 additions and 15 deletions

View file

@ -81,14 +81,6 @@
function getThreshold() {
// If less than 100, the search window ends up not getting images
// 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 7000;
//}
var screens = $.browser.mobile ? 2.5 : 1;
// This helps eliminate the draw-in effect as you scroll
@ -136,12 +128,12 @@
images = remaining;
if (!images.length) {
Events.off(window, 'scroll.' + eventNamespace);
Events.off(document, 'scroll.' + eventNamespace);
Events.off(window, 'resize.' + eventNamespace);
}
}
Events.on(window, 'scroll.' + eventNamespace, unveil);
Events.on(document, 'scroll.' + eventNamespace, unveil);
Events.on(window, 'resize.' + eventNamespace, unveil);
unveil();