Skip to content

Commit

Permalink
Fixed an off-by-one error in boundX
Browse files Browse the repository at this point in the history
  • Loading branch information
shimondoodkin authored Apr 5, 2018
1 parent f325051 commit 663173b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/plugins/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function isLeftClick (e, type) {
}

function boundX(x, graph) {
return Math.min(Math.max(0, x), graph.plotWidth - 1);
return Math.min(Math.max(0, x), graph.plotWidth);
}

function boundY(y, graph) {
Expand Down

0 comments on commit 663173b

Please sign in to comment.