This project is archived and is in readonly mode.

#574 ✓duplicate
barraud

mootools 1.3.2.1 Plugin Slider : range including 0 but step is never 0

Reported by barraud | June 2nd, 2011 @ 01:26 PM

mootools 1.3.2.1 Plugin Slider : range including 0 but step is never 0

Hello,

When you create a slider using the range option, if the 0 is part of this range (as a bound or between), the slider step value is NEVER 0. For instance :

1) sliders[i] = new Slider( $$('div.slider')[i], $('div.knob')[i], range: [0,20], ...});
When you move the slider knob with your mouse, the smallest value is 1, never 0.

2) sliders[i] = new Slider( $$('div.slider')[i], $('div.knob')[i], range: [-1,20], ...});
When you move the slider knob with your mouse, the smallest value is -1 and the next value is 1, never 0.

It would be nice to use the 0 value if chosen by the user.

Is it a bug or/and a slider definition problem ? the tested knob size is 20px x 20px and the slider size is 160 px (a tested kob size 10px x 10 px does the same).

Best Regards

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages