mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 15:33:44 +03:00
When navigating stages in the signal editor by keyboard, include the header when autoscrolling.
This commit is contained in:
parent
e306a48994
commit
172f258ce3
@ -96,9 +96,8 @@ impl TrafficSignalEditor {
|
||||
} else {
|
||||
self.current_stage = idx;
|
||||
self.side_panel = make_side_panel(ctx, app, &self.members, self.current_stage);
|
||||
// TODO Maybe center of previous member
|
||||
self.side_panel
|
||||
.scroll_to_member(ctx, format!("stage {}", idx + 1));
|
||||
.scroll_to_member(ctx, format!("change duration of stage {}", idx + 1));
|
||||
}
|
||||
|
||||
self.recalc_draw_current(ctx, app);
|
||||
|
Loading…
Reference in New Issue
Block a user