Small drag-and-drop typo fixes

This commit is contained in:
Dustin Carlino 2021-08-24 10:27:14 -07:00
parent 4e93b34ded
commit b5015143cb
2 changed files with 2 additions and 3 deletions

View File

@ -343,14 +343,13 @@ impl State<App> for RoadEditor {
});
}
"lane cards" => {
// hovering inex changed
// hovering index changed
panels_need_recalc = true;
}
_ => unreachable!(),
},
Outcome::DragDropReleased(_, old_idx, new_idx) => {
if old_idx != new_idx {
// TODO Not using modify_current_lane... should we try to?
let mut edits = app.primary.map.get_edits().clone();
edits
.commands

View File

@ -77,7 +77,7 @@ pub enum Outcome {
/// A dropdown, checkbox, spinner, etc changed values. The name of the changed widget is
/// returned, but not the value, since its type is generic.
Changed(String),
/// On a DragDrop widget, a member was clicked on and released. It's position may have changed.
/// On a DragDrop widget, a member was clicked on and released. Its position may have changed.
/// (name, orig_idx, new_idx)
DragDropReleased(String, usize, usize),
/// Nothing happened