diff --git a/src/app/Knob.cpp b/src/app/Knob.cpp index 779415ff..709f5eb1 100644 --- a/src/app/Knob.cpp +++ b/src/app/Knob.cpp @@ -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 diff --git a/src/app/SVGKnob.cpp b/src/app/SVGKnob.cpp index df3f6cdf..a1e0fd6b 100644 --- a/src/app/SVGKnob.cpp +++ b/src/app/SVGKnob.cpp @@ -7,6 +7,7 @@ namespace rack { SVGKnob::SVGKnob() { shadow = new CircularShadow(); addChild(shadow); + shadow->box.size = Vec(); tw = new TransformWidget(); addChild(tw);