summaryrefslogtreecommitdiffstats
path: root/src/animation/Runner.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-23 15:06:37 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-23 15:06:37 +0100
commit8555e13b252f07f8079b08c0b29f4399d389b1e0 (patch)
tree98dd44791b3a28a68ab11e90d1c2da7bc069ea21 /src/animation/Runner.js
parentd5c01a7848154d240f434b38d802fdb65727fd7f (diff)
downloadsvg.js-8555e13b252f07f8079b08c0b29f4399d389b1e0.tar.gz
svg.js-8555e13b252f07f8079b08c0b29f4399d389b1e0.zip
fixed lots of bugs in the timeline. Its now working as expected in all cases.
- refactor code into functions - handle timeSource correctly - allow for immediate updates - Runners dont know about their delay anymore. Thats far more simple. - Timeline is paused on creation
Diffstat (limited to 'src/animation/Runner.js')
-rw-r--r--src/animation/Runner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animation/Runner.js b/src/animation/Runner.js
index 63c95d6..5551162 100644
--- a/src/animation/Runner.js
+++ b/src/animation/Runner.js
@@ -578,7 +578,7 @@ registerMethods({
return new Runner(o.duration)
.loop(o)
.element(this)
- .timeline(timeline)
+ .timeline(timeline.play())
.schedule(delay, when)
},