haxeui-core
haxeui-core copied to clipboard
[BUG] Sliders do not snap properly when snap is fractional.
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:
- http://haxeui.org/builder/?758125fe
Appears in HaxeUI Core/Flixel git, as well as the HaxeUI Builder.