Commit 863f618e authored by Mike Bostock's avatar Mike Bostock
Browse files

Prevent tick at t = 0.

This is especially important for a zero-duration transition, where the duration
is actually one millisecond, and we want the only tick to be at t = 1.
parent 58325a94
......@@ -7856,7 +7856,7 @@ d3 = function() {
tweened.push(value);
}
});
if (tick(elapsed)) return 1;
if (tick(elapsed || 1)) return 1;
d3_timer_replace(tick, delay, time);
}
function tick(elapsed) {
......
This diff is collapsed.
......@@ -83,7 +83,7 @@ function d3_transitionNode(node, i, id, inherit) {
}
});
if (tick(elapsed)) return 1;
if (tick(elapsed || 1)) return 1;
d3_timer_replace(tick, delay, time);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment