fix changing animated values with different easing wrong current position
This commit is contained in:
parent
24c412778b
commit
fd827fae29
|
@ -62,7 +62,7 @@ public class AnimatedValue {
|
||||||
float progress = (float) this.time / this.duration;
|
float progress = (float) this.time / this.duration;
|
||||||
if (this.eqn != eqn) {
|
if (this.eqn != eqn) {
|
||||||
if (this.time != 0 && this.time != this.duration) {
|
if (this.time != 0 && this.time != this.duration) {
|
||||||
progress = this.eqn.uncalc(progress);
|
progress = eqn.uncalc(this.eqn.calc(progress));
|
||||||
}
|
}
|
||||||
this.eqn = eqn;
|
this.eqn = eqn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user