Skip to content

Commit

Permalink
Fix off-by-one error in AA code
Browse files Browse the repository at this point in the history
  • Loading branch information
fredludlow committed May 20, 2016
1 parent 1c2887d commit 563d9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feature-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ var FeatureViewer = (function () {
svgContainer.on('mousemove', function () {
var absoluteMousePos = SVGOptions.brushActive ? d3.mouse(d3.select(".background").node()) : d3.mouse(svgContainer.node());;
var pos = Math.round(scalingPosition(absoluteMousePos[0]));
pos += sequence[pos] || "";
pos += sequence[pos-1] || "";
$(div + " #zoomPosition").text(pos);
});

Expand Down

0 comments on commit 563d9cf

Please sign in to comment.