avoids very bad handling of non-integer sizes (they will not work, but won't break as badly)
knob rotation now is locked at beginning and end, instead of turning infinitely