aterrien/jQuery-Knob — pull request #8 by nicksabatino (2012-05-11 06:33:04+00:00)
Title: Bug with ability to exceed min/max threshold

As reported: https://github.com/aterrien/jQuery-Knob/issues/7

If you click on the value in the middle of the knob and use your up/right or down/left keys to increment or decrement the value, you are not limited by the minimum or maximum values of the knob.

For instance, on a knob which is ordinarily in the range [0,100], you are able to go way past 0 to -1 and beyond. Likewise you can exceed 100 by incrementing forever.

This issue exists also when you have explicitly set a data-min or data-max.

----

This patch checks to see if the next value will exceed the max or min limit, and adjust the next value accordingly.