in the if (is_decimal) test. and the var step is the step value
i would like to activate this stepped func, by maybe adding a step parameter. if this parameter is equal to zero, so we use the classical Imlerp, and if > 0.0f we use this one.
but i dont know if i need to rewrite all sliders for use my SliderBehaviorT ?
if you are interest i can propose a PL for all decimal slider and drag.
it can be nice also to have the possibility to step the SliderInt,by ex, if we have a range of 100, it can be nice to step by 10, 15, 20 or 25 if needed.
i thinkc it can be a useful feauture, with not big code modification
maybe we can simplify for use same code for float and int stepper also
The stepping code should be before // Round to user desired precision based on format string:
I think it could work if we exposed an extra parameter in the low-level DragBehavior/SliderBehavior and let the user create their own drag/slider function with it.