diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-05-24 14:30:06 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-05-24 14:30:06 +0200 |
commit | 70a8fd5fac29d5eb3a65dbee32d1a3fa817523bf (patch) | |
tree | baba2ac5475a22bf9f230cc1adcede325eea7c23 /src | |
parent | acb8408fb90d7e037384670d8229346b0282883f (diff) | |
download | svg.js-70a8fd5fac29d5eb3a65dbee32d1a3fa817523bf.tar.gz svg.js-70a8fd5fac29d5eb3a65dbee32d1a3fa817523bf.zip |
fix runner and timeline so that it schedules animations correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/runner.js | 2 | ||||
-rw-r--r-- | src/timeline.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runner.js b/src/runner.js index bfe8a13..fa3df5e 100644 --- a/src/runner.js +++ b/src/runner.js @@ -162,7 +162,7 @@ SVG.Runner = SVG.invent({ // If there is no duration, we are in declarative mode and dt has to be // positive always, so if its negative, we ignore it. - if ( this._stepper && dt < 0 ) return false + if ( this._isDeclarative && dt < 0 ) return false // Increment the time and read out the parameters var duration = this._duration diff --git a/src/timeline.js b/src/timeline.js index 7de9c00..5bdcb55 100644 --- a/src/timeline.js +++ b/src/timeline.js @@ -147,7 +147,7 @@ SVG.Timeline = SVG.invent({ // TODO: Throw error } - runner.time(absoluteStartTime) + runner.time(-absoluteStartTime) this._startTime = absoluteStartTime + runner._duration this._runners.push(runner) |