1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-21 01:44:21 +00:00

Drags, Sliders: store initial value on activation, as a convenience for some mods. (#8223)

This commit is contained in:
ocornut 2024-12-12 18:48:42 +01:00
parent 4ad5496474
commit 8237ab450e
3 changed files with 10 additions and 0 deletions

View file

@ -3927,6 +3927,7 @@ ImGuiContext::ImGuiContext(ImFontAtlas* shared_font_atlas)
ActiveIdPreviousFrameIsAlive = false;
ActiveIdPreviousFrameHasBeenEditedBefore = false;
ActiveIdPreviousFrameWindow = NULL;
memset(&ActiveIdValueOnActivation, 0, sizeof(ActiveIdValueOnActivation));
LastActiveId = 0;
LastActiveIdTimer = 0.0f;