diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-01 22:41:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-01 22:41:07 +0200 |
commit | be0ad41e745c3e6177d1159e25f7d23e45b02738 (patch) | |
tree | c1845a43e3b3c67c9fadc067f2ff851e668b4213 /src/gui/ComboBox.cpp | |
parent | 10a5669330ba978c37d984a312ba1de7a2542503 (diff) |
Use scissor for pages
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; } |