fce1829c55377876814443046b7025c68b762f7c |
|
10-Dec-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Better circular op protection for set(value, x)
Fixes #2531498
The protection against `slider.set('value', x)`
looping back from the thumb position was inadequate
when setting the value by increments that would be
rounded out when applying the value=>offset calculation.
The lack of new pixel position resulted in the value
being reverted. This was especially harmful to keyboard
interaction on Sliders where the `max - min` was less
than the pixel length, because arrow keys would attempt
to move the value by 1, but would be stopped, thus
preventing the thumb from moving further.
Answer: respect the assigned value, duh. |