diff options
Diffstat (limited to 'src/gui/ComboBox.cpp')
-rw-r--r-- | src/gui/ComboBox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/ComboBox.cpp b/src/gui/ComboBox.cpp index 6b8ec26..81c804f 100644 --- a/src/gui/ComboBox.cpp +++ b/src/gui/ComboBox.cpp @@ -41,7 +41,8 @@ namespace gsr { if(mgl::FloatRect(draw_pos, item_size).contains(mouse_pos)) { show_dropdown = !show_dropdown; - move_to_top = true; + if(show_dropdown) + move_to_top = true; } else { show_dropdown = false; } |