From 172f258ce39175230702a6464c5fa621a8fa6512 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Wed, 27 Jan 2021 09:10:16 -0800 Subject: [PATCH] When navigating stages in the signal editor by keyboard, include the header when autoscrolling. --- game/src/edit/traffic_signals/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/src/edit/traffic_signals/mod.rs b/game/src/edit/traffic_signals/mod.rs index dafd20da08..7ffaa34d54 100644 --- a/game/src/edit/traffic_signals/mod.rs +++ b/game/src/edit/traffic_signals/mod.rs @@ -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);