Skip to content

Commit

Permalink
Fix page up on last slide.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jan 26, 2012
1 parent d54974c commit 7b4fc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack.v0.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var stack = (function() {
break;
default: return;
}
if (yTarget == null) yTarget = yFloor;
if (yTarget == null) yTarget = Math.round(yActual + .25);
stack.position(yTarget = Math.max(0, Math.min(n - 1, yTarget + delta)));
d3.event.preventDefault();
}
Expand Down

0 comments on commit 7b4fc51

Please sign in to comment.