Skip to content

Commit f941cd4

Browse files
authored
Merge pull request phaserjs#3183 from ladrower/TimerEvent
TimerEvent startAt field not scaled
2 parents 07bbe80 + 3e5a35d commit f941cd4

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/time/Clock.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ var Clock = new Class({
101101
{
102102
event = this._pendingInsertion[i];
103103

104-
event.elapsed = event.startAt * event.timeScale;
105-
106104
this._active.push(event);
107105
}
108106

src/time/TimerEvent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var TimerEvent = new Class({
8181

8282
this.paused = GetFastValue(config, 'paused', false);
8383

84-
this.elapsed = 0;
84+
this.elapsed = this.startAt;
8585
this.hasDispatched = false;
8686
this.repeatCount = (this.repeat === -1 || this.loop) ? 999999999999 : this.repeat;
8787

0 commit comments

Comments
 (0)