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:
parent
68526e2c1d
commit
13c3281ad0
4 changed files with 7 additions and 15 deletions
4
dashboard-ui/cordova/chromecast.js
vendored
4
dashboard-ui/cordova/chromecast.js
vendored
|
@ -285,8 +285,8 @@
|
||||||
|
|
||||||
name = (name || '').toLowerCase();
|
name = (name || '').toLowerCase();
|
||||||
var validTokens = ['nexusplayer'];
|
var validTokens = ['nexusplayer'];
|
||||||
//validTokens.push('chromecast');
|
validTokens.push('chromecast');
|
||||||
//validTokens.push('eurekadongle');
|
validTokens.push('eurekadongle');
|
||||||
|
|
||||||
return validTokens.filter(function (t) {
|
return validTokens.filter(function (t) {
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ function humane_date(date_str) {
|
||||||
return Math.round(seconds / 4730400000) + ' centuries' + token;
|
return Math.round(seconds / 4730400000) + ' centuries' + token;
|
||||||
|
|
||||||
return date_str;
|
return date_str;
|
||||||
};
|
}
|
||||||
|
|
||||||
function humane_elapsed(firstDateStr, secondDateStr) {
|
function humane_elapsed(firstDateStr, secondDateStr) {
|
||||||
var dt1 = new Date(firstDateStr);
|
var dt1 = new Date(firstDateStr);
|
||||||
|
|
|
@ -510,7 +510,7 @@
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
Dashboard.navigate(link.href);
|
Dashboard.navigate(link.href);
|
||||||
}, 350);
|
}, 400);
|
||||||
}, 50);
|
}, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -525,7 +525,7 @@
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
Dashboard.logout();
|
Dashboard.logout();
|
||||||
}, 350);
|
}, 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
12
dashboard-ui/thirdparty/jquery.unveil-custom.js
vendored
12
dashboard-ui/thirdparty/jquery.unveil-custom.js
vendored
|
@ -81,14 +81,6 @@
|
||||||
|
|
||||||
function getThreshold() {
|
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;
|
var screens = $.browser.mobile ? 2.5 : 1;
|
||||||
|
|
||||||
// This helps eliminate the draw-in effect as you scroll
|
// This helps eliminate the draw-in effect as you scroll
|
||||||
|
@ -136,12 +128,12 @@
|
||||||
images = remaining;
|
images = remaining;
|
||||||
|
|
||||||
if (!images.length) {
|
if (!images.length) {
|
||||||
Events.off(window, 'scroll.' + eventNamespace);
|
Events.off(document, 'scroll.' + eventNamespace);
|
||||||
Events.off(window, 'resize.' + eventNamespace);
|
Events.off(window, 'resize.' + eventNamespace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Events.on(window, 'scroll.' + eventNamespace, unveil);
|
Events.on(document, 'scroll.' + eventNamespace, unveil);
|
||||||
Events.on(window, 'resize.' + eventNamespace, unveil);
|
Events.on(window, 'resize.' + eventNamespace, unveil);
|
||||||
|
|
||||||
unveil();
|
unveil();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue