haxeui / haxeui-core

The core library of the HaxeUI framework

Home Page:http://haxeui.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

EliteMasterEric opened this issue · comments

commented

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.