mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix content sometimes not appearing after restart
This commit is contained in:
parent
92b687f9a5
commit
2d62dc8dd9
1 changed files with 51 additions and 49 deletions
|
@ -214,11 +214,13 @@ define(['browser'], function (browser) {
|
|||
|
||||
function slide(newAnimatedPage, oldAnimatedPage, transition, isBack) {
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
// Do not use fill: both or the ability to swipe horizontally may be affected on Chrome 50
|
||||
var timings = {
|
||||
duration: 450,
|
||||
iterations: 1,
|
||||
easing: 'ease-out',
|
||||
fill: 'both'
|
||||
easing: 'ease-out'
|
||||
}
|
||||
|
||||
var animations = [];
|
||||
|
@ -247,18 +249,19 @@ define(['browser'], function (browser) {
|
|||
|
||||
currentAnimations = animations;
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
animations[animations.length - 1].onfinish = resolve;
|
||||
});
|
||||
}
|
||||
|
||||
function fade(newAnimatedPage, oldAnimatedPage, transition, isBack) {
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
// Do not use fill: both or the ability to swipe horizontally may be affected on Chrome 50
|
||||
var timings = {
|
||||
duration: 140,
|
||||
iterations: 1,
|
||||
easing: 'ease-out',
|
||||
fill: 'both'
|
||||
easing: 'ease-out'
|
||||
}
|
||||
|
||||
var animations = [];
|
||||
|
@ -283,7 +286,6 @@ define(['browser'], function (browser) {
|
|||
|
||||
currentAnimations = animations;
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
animations[animations.length - 1].onfinish = resolve;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue