mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Smoother rotary knobs: 288-degree sweep range with startFromMousePosition
This commit is contained in:
parent
24579e313c
commit
68e023d08d
1 changed files with 3 additions and 0 deletions
|
|
@ -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<float>::pi * 1.2f,
|
||||
juce::MathConstants<float>::pi * 2.8f,
|
||||
true);
|
||||
knob.setTextBoxStyle(juce::Slider::TextBoxBelow, false, 55, 16);
|
||||
knob.setLookAndFeel(&knobLaf);
|
||||
knob.setName(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue