|
|
@@ -30,7 +30,7 @@ void Knob::onDragMove(EventDragMove &e) { |
|
|
|
if (windowIsModPressed()) |
|
|
|
delta /= 16.0; |
|
|
|
dragValue += delta; |
|
|
|
dragValue = clamp(dragValue, minValue, maxValue); |
|
|
|
dragValue = clamp2(dragValue, minValue, maxValue); |
|
|
|
if (snap) |
|
|
|
setValue(roundf(dragValue)); |
|
|
|
else |
|
|
|