File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ pub fn map_select_menu(
81
81
. show ( ui)
82
82
. focus_by_default ( ui) ;
83
83
84
+ if all_maps_button. has_focus ( ) {
85
+ all_maps_button. scroll_to_me ( None ) ;
86
+ }
87
+
84
88
if all_maps_button. clicked ( ) {
85
89
// TODO: Currently does not include packs, only stable maps.
86
90
let mut map_pool =
@@ -98,6 +102,10 @@ pub fn map_select_menu(
98
102
)
99
103
. show ( ui) ;
100
104
105
+ if button. has_focus ( ) {
106
+ button. scroll_to_me ( None ) ;
107
+ }
108
+
101
109
if button. clicked ( ) {
102
110
return MapSelectAction :: SelectMap (
103
111
MapPool :: from_single_map ( * handle) ,
@@ -116,6 +124,10 @@ pub fn map_select_menu(
116
124
)
117
125
. show ( ui) ;
118
126
127
+ if button. has_focus ( ) {
128
+ button. scroll_to_me ( None ) ;
129
+ }
130
+
119
131
if button. clicked ( ) {
120
132
return MapSelectAction :: SelectMap (
121
133
MapPool :: from_single_map ( * map) ,
You can’t perform that action at this time.
0 commit comments