haxeui-core icon indicating copy to clipboard operation
haxeui-core copied to clipboard

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

Open EliteMasterEric opened this issue 2 years ago • 1 comments

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.

EliteMasterEric avatar Mar 10 '23 03:03 EliteMasterEric