diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-23 15:06:37 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-23 15:06:37 +0100 |
commit | 8555e13b252f07f8079b08c0b29f4399d389b1e0 (patch) | |
tree | 98dd44791b3a28a68ab11e90d1c2da7bc069ea21 /src/animation/Runner.js | |
parent | d5c01a7848154d240f434b38d802fdb65727fd7f (diff) | |
download | svg.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.js | 2 |
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) }, |