This is for the inline bubble selection

https://github.com/danielgindi/Charts/pull/3548
This commit is contained in:
Daniel Cohen Gindi 2020-01-22 13:12:04 +02:00
parent 7752efef7e
commit ae59e7a19e

View file

@ -367,7 +367,7 @@ public abstract class DataSet<T extends Entry> extends BaseDataSet<T> {
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;
}