swipe back refactor

This commit is contained in:
Adam Bradley
2015-09-17 16:13:51 -05:00
parent 252a5ee747
commit 5fbc142dae
15 changed files with 224 additions and 292 deletions

View File

@@ -392,6 +392,7 @@ export class Animation {
}
progress(value) {
value = Math.min(1, Math.max(0, value));
this.isProgress = true;
let i;
@@ -589,7 +590,6 @@ class Animate {
if (animation) {
// passed a number between 0 and 1
value = Math.max(0, Math.min(1, value));
if (animation.playState !== 'paused') {
animation.pause();