aterrien/jQuery-Knob — pull request #5 by tim-reynolds-briteskies (2012-05-10 14:48:39+00:00)
Title: As requested on Reddit () I added the ability to stop the dial at the extents (Max, Min)

Two new options:
boolean stopAtExtents (default false)
float extentsThreshold (default 0.10)

The threshold is the percentage of the range to check for when snapping.
Example:
Min: 50
Max: 200
Threshold: 0.08
Dec: (200 - 50) * 0.08 => 12
If the value of the dial is <= Min + Dec (62) and the new value is >= Max - Dec (188) we set the new value to Min (50).
If the value of the dial is >= Max - Dec (188) and the new value is <= Min + Dec (62) we set the new value to Max (200)

Simple!