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