Commit f0a1ffd
committed
Fix: Update elevation chart when dragging any waypoint, not just selected
Previously, plotElevation() was only called if the dragged waypoint
matched selectedMarker. This meant dragging an unselected waypoint
wouldn't update the chart.
Now plotElevation() is called for all waypoint drags:
- If waypoint is selected: updates elevation + runs full async logic
- If waypoint is not selected: updates elevation chart only
This ensures the elevation profile always reflects the current mission
geometry after any waypoint is moved.1 parent b13a083 commit f0a1ffd
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2340 | 2340 | | |
2341 | 2341 | | |
2342 | 2342 | | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
2343 | 2346 | | |
2344 | 2347 | | |
2345 | 2348 | | |
| |||
0 commit comments