mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
REVIEWED: GuiToggleSlider() focus on mouse-hover
This commit is contained in:
@ -2142,7 +2142,8 @@ int GuiToggleSlider(Rectangle bounds, const char *text, int *active)
|
||||
}
|
||||
else state = STATE_FOCUSED;
|
||||
}
|
||||
else if (*active) state = STATE_PRESSED;
|
||||
|
||||
if ((*active) && (state != STATE_FOCUSED)) state = STATE_PRESSED;
|
||||
}
|
||||
|
||||
if (*active >= itemCount) *active = 0;
|
||||
|
||||
Reference in New Issue
Block a user