-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get a slider or input field to only return results once the user stops editing? #820
Comments
Sorry it's not possible right now. The feature is planned and listed in #701 but surprisingly more work than expected for some widgets (perhaps easier for regular Slider). For text input you can however use |
I'm trying to figure out the right workflow to work around it with temporaries at least for the sun direction, which is a vec3. Right now I do something like:
I can make a |
I think I have a hack. |
The hack I've been using recently is:
I might add and expose that function publicly to facilitate that sort of thing. |
That is a fair bit cleaner than my hack =) |
Reopening this issue as I would like to like to provide an official public implementation of it. |
@ekmett Reviving this old request, we now have a much better solution. See there: |
I have a direction in my editor that when edited takes something like half a second of background processing to adjust.
I'd like to have imgui change the value in place only once upon finishing edit, rather than as the user types, as otherwise my world stutters to a halt.
I can't quite figure out how to do this through the current API.
The text was updated successfully, but these errors were encountered: