aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-24 14:30:06 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-05-24 14:30:06 +0200
commit70a8fd5fac29d5eb3a65dbee32d1a3fa817523bf (patch)
treebaba2ac5475a22bf9f230cc1adcede325eea7c23 /src
parentacb8408fb90d7e037384670d8229346b0282883f (diff)
downloadsvg.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.js2
-rw-r--r--src/timeline.js2
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)