Skip to content

Commit

Permalink
This is for the inline bubble selection
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Jan 23, 2020
1 parent f5c63ad commit d7f6a7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public int getEntryIndex(float xValue, float closestToY, Rounding rounding) {
if (value.getX() != closestXValue)
break;

if (Math.abs(value.getY() - closestToY) < Math.abs(closestYValue - closestToY)) {
if (Math.abs(value.getY() - closestToY) <= Math.abs(closestYValue - closestToY)) {
closestYValue = closestToY;
closestYIndex = closest;
}
Expand Down

0 comments on commit d7f6a7a

Please sign in to comment.