This commit is contained in:
Dennis Guse
2019-09-16 19:44:34 +02:00
parent 9dd2f7d1c1
commit 63d29f2097
3 changed files with 13 additions and 21 deletions
@@ -449,8 +449,7 @@ public class ChartView extends View {
synchronized (waypoints) {
for (int i = 0; i < waypoints.size(); i++) {
Waypoint waypoint = waypoints.get(i);
int distance = Math.abs(
getX(getWaypointXValue(waypoint)) - (int) event.getX() - getScrollX());
int distance = Math.abs(getX(getWaypointXValue(waypoint)) - (int) event.getX() - getScrollX());
if (distance < minDistance) {
minDistance = distance;
nearestWaypoint = waypoint;