aboutsummaryrefslogtreecommitdiff
path: root/src/gui/ComboBox.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-01 22:41:07 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-01 22:41:07 +0200
commitbe0ad41e745c3e6177d1159e25f7d23e45b02738 (patch)
treec1845a43e3b3c67c9fadc067f2ff851e668b4213 /src/gui/ComboBox.cpp
parent10a5669330ba978c37d984a312ba1de7a2542503 (diff)
Use scissor for pages
Diffstat (limited to 'src/gui/ComboBox.cpp')
-rw-r--r--src/gui/ComboBox.cpp3
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;
}