Remove unnecessary subtraction
This commit is contained in:
parent
f449ae598b
commit
74125e9925
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ public class TrackDetailsMenu {
|
|||
float highestVisibleX = chart.getHighestVisibleX();
|
||||
float nextVisibleX = lowestVisibleX + (pos - gpxItem.chartHighlightPos);
|
||||
float oneFourthDiff = (highestVisibleX - lowestVisibleX) / 4f;
|
||||
if (pos - oneFourthDiff > 0) {
|
||||
if (pos > oneFourthDiff) {
|
||||
nextVisibleX = pos - oneFourthDiff;
|
||||
}
|
||||
gpxItem.chartHighlightPos = pos;
|
||||
|
|
Loading…
Reference in a new issue