darul75 / angular-awesome-slider

:arrows_clockwise: Angular slider control directive
http://darul75.github.io/angular-awesome-slider/
MIT License
143 stars 63 forks source link

Slider doesn't work when from and to values are the same #139

Open babujoym opened 8 years ago

babujoym commented 8 years ago

The slider doesn't work when the from and to values in the slider options are the same.

it is happening because the value for the pointer is becoming NaN on dividing the interval which is 0, when the from and to values are same

darul75 commented 8 years ago

Indeed, there must be a bug in this case, I will take a look.

In the meatime can you fork this fiddle and redo your scenario

http://jsfiddle.net/darul75/g9e9n8xc/

are you changing from and to dynamically ?