Skip to content

Commit 863f618

Browse files
committed
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.
1 parent 58325a9 commit 863f618

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7856,7 +7856,7 @@ d3 = function() {
78567856
tweened.push(value);
78577857
}
78587858
});
7859-
if (tick(elapsed)) return 1;
7859+
if (tick(elapsed || 1)) return 1;
78607860
d3_timer_replace(tick, delay, time);
78617861
}
78627862
function tick(elapsed) {

0 commit comments

Comments
 (0)