Skip to content
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

clicking - / + on numeric input fields counts twice #656

Closed
paniq opened this issue May 12, 2016 · 3 comments
Closed

clicking - / + on numeric input fields counts twice #656

paniq opened this issue May 12, 2016 · 3 comments
Labels

Comments

@paniq
Copy link

paniq commented May 12, 2016

When clicking on any of the + / - buttons of numeric inputs in the demo window (e.g. "Widgets -> input int"), both the click and the mouse button release cause a change in the number, allowing to only change numbers by stepsize 2 rather than 1.

This happens with the SDL2 / GL3 example backend.

@ocornut ocornut added the bug label May 13, 2016
@ocornut
Copy link
Owner

ocornut commented May 13, 2016

Thanks. Affects ImGuiButtonFlags_Repeat flag Looks like it was introduced 12 days ago during this refactor: 547f34c so I guess you aren't on 1.48 anymore? Fixing now.

ocornut added a commit that referenced this issue May 13, 2016
…e +/- of InputInt/InputFloat and user repeating buttons (#656)

+ Took note of further work
Broken in 547f34c
ocornut added a commit that referenced this issue May 13, 2016
@ocornut
Copy link
Owner

ocornut commented May 13, 2016

Also fixed a minor century-old bug where holding a repeating button ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_Repeat would also return true on release whereas it shouldn't. It was barely noticeable unless the RepeatRate is very slow.

@ocornut ocornut closed this as completed May 13, 2016
@ocornut
Copy link
Owner

ocornut commented May 13, 2016

Btw thanks for switching to latest/master. I really need some people to be up to date because it is the best way to find bugs early in the absence of a more formal testing process. I use latest daily but my no software uses all features. Not to pretend that tagged releases are any less buggy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants