Skip to content

Commit dddef32

Browse files
committed
Fix transitions that stop on start.
1 parent 268af88 commit dddef32

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

d3.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7698,7 +7698,8 @@ d3 = function() {
76987698
++lock.count;
76997699
d3.timer(function(elapsed) {
77007700
var d = node.__data__, ease = transition.ease, delay = transition.delay, duration = transition.duration, tweened = [];
7701-
if (delay <= elapsed) start(elapsed); else d3_timer_replace(start, delay, time);
7701+
if (delay <= elapsed) return start(elapsed);
7702+
d3_timer_replace(start, delay, time);
77027703
function start(elapsed) {
77037704
if (lock.active > id) return stop();
77047705
lock.active = id;

0 commit comments

Comments
 (0)