From 68e023d08d6b21c0cd799e00978e0a0990e4fe09 Mon Sep 17 00:00:00 2001 From: Armin Date: Mon, 13 Jul 2026 22:13:31 +0200 Subject: [PATCH] Smoother rotary knobs: 288-degree sweep range with startFromMousePosition --- Source/PluginEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index c108cf4..6f39fe0 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -434,6 +434,9 @@ void MainContentComponent::setupLabel(juce::Label& label, const juce::String& te void MainContentComponent::setupKnob(juce::Slider& knob, const juce::String& name) { knob.setSliderStyle(juce::Slider::RotaryVerticalDrag); + knob.setRotaryParameters(juce::MathConstants::pi * 1.2f, + juce::MathConstants::pi * 2.8f, + true); knob.setTextBoxStyle(juce::Slider::TextBoxBelow, false, 55, 16); knob.setLookAndFeel(&knobLaf); knob.setName(name);