mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-23 22:42:32 +03:00
Small drag-and-drop typo fixes
This commit is contained in:
parent
4e93b34ded
commit
b5015143cb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user