Skip to content

Commit 4308479

Browse files
committed
Update activeDuration.
1 parent d883be6 commit 4308479

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/timing-utilities.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
this._iterationStart = 0;
3636
this._iterations = 1;
3737
this._duration = 0;
38-
this.playbackRate = 1;
38+
this._playbackRate = 1;
3939
this._direction = 'normal';
4040
this._easing = 'linear';
4141
}
@@ -50,6 +50,7 @@
5050
if (this._effect) {
5151
this._effect._timingInput[member] = value;
5252
this._renormalize();
53+
this._effect.activeDuration = shared.calculateActiveDuration(this._effect._timing);
5354
if (this._effect._animation) {
5455
this._effect._animation._rebuildUnderlyingAnimation();
5556
}
@@ -85,6 +86,9 @@
8586
get duration() {
8687
return this._duration;
8788
},
89+
get playbackRate() {
90+
return this._playbackRate;
91+
},
8892
set direction(value) {
8993
this._setMember('direction', value);
9094
},
@@ -139,7 +143,7 @@
139143

140144
function normalizeTimingInput(timingInput, forGroup) {
141145
var timing = makeTiming(timingInput, forGroup);
142-
timing.easing = toTimingFunction(timing.easing);
146+
timing._easing = toTimingFunction(timing.easing);
143147
return timing;
144148
}
145149

0 commit comments

Comments
 (0)