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

[BUG] Sliders do not snap properly when snap is fractional. #517

Open
EliteMasterEric opened this issue Mar 10, 2023 · 0 comments
Open

[BUG] Sliders do not snap properly when snap is fractional. #517

EliteMasterEric opened this issue Mar 10, 2023 · 0 comments

Comments

@EliteMasterEric
Copy link
Contributor

The issue occurs when using Slider components and setting the snap value to less than 1.0. It appears that the snap value is being rounded up to the nearest whole number, which is not ideal when looking to create sliders to represent floating point values.

For example, this reproduction attempts to create a slider ranging from 0.5 to 5, at increments of 0.1:

Appears in HaxeUI Core/Flixel git, as well as the HaxeUI Builder.

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

No branches or pull requests

1 participant