1
0

Revert "Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of EGET_LISTBOX_CHANGED."

This broke scrolling in listboxes, as they would always reset to top position.
reverts commit 1967d71cfb
This commit is contained in:
sfan5
2023-04-11 14:36:44 +02:00
parent aa1696a7e6
commit 2d81374b34
2 changed files with 16 additions and 25 deletions

View File

@@ -154,7 +154,6 @@ namespace gui
core::array< ListItem > Items;
s32 Selected;
s32 HoverSelected; // When >= 0 we're in the middle of changing selection while mouse is pressed. We need to know so selected again isn't called too often.
s32 ItemHeight;
s32 ItemHeightOverride;
s32 TotalItemHeight;
@@ -162,7 +161,7 @@ namespace gui
gui::IGUIFont* Font;
gui::IGUISpriteBank* IconBank;
gui::IGUIScrollBar* ScrollBar;
u32 SelectTime;
u32 selectTime;
u32 LastKeyTime;
core::stringw KeyBuffer;
bool Selecting;