1
0
Fork 0
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:
Luke Pulverenti 2016-05-19 01:20:47 -04:00
parent 92b687f9a5
commit 2d62dc8dd9

View file

@ -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;
});
}