Skip to content

Commit f0a1ffd

Browse files
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

File tree

tabs/mission_control.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,6 +2340,9 @@ function iconKey(filename) {
23402340

23412341
plotElevation();
23422342
})()
2343+
} else {
2344+
// Update elevation chart even for non-selected waypoints
2345+
plotElevation();
23432346
}
23442347
}
23452348
else if (tempMarker.kind == "home" ) {

0 commit comments

Comments
 (0)