feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
914 stars 386 forks source link

Slider and NumericStepper: setting maximum or minimum to Infinity results in NaN value #1790

Closed ghost closed 3 years ago

ghost commented 5 years ago

Setting Slider minimum and maximum to -Infinity or Infinity after interaction causes he value set to NaN.

ghost commented 5 years ago

There is also same problem with this in NumericStepper.

joshtynjala commented 5 years ago

Slider is behaving as expected. It impossible to implement a slider where the bounds are non-finite.

In NumericStepper, I guess it should be possible to allow non-finite bounds, so that's probably a bug.

ghost commented 5 years ago

Blender has some slider which shows values of the 3d object dragging it increment and decrement values Yet you are right with Slider but NumericStepper seems implementable as I have tested it with Number.MAX_VALUE and MIN_VALUE so there could be someway to fix default values of stepper like setting it to Big numbers (Infinity somehow).