| 119 | } |
| 120 | |
| 121 | void ModulatableSlider::mouseDoubleClick(const juce::MouseEvent& event) |
| 122 | { |
| 123 | // Check if the double-click is on the modulation handle |
| 124 | if (isModulated && getModulationHandleBounds().contains(event.getPosition().toFloat())) |
| 125 | { |
| 126 | if (onModulationReset) |
| 127 | { |
| 128 | onModulationReset(); |
| 129 | } |
| 130 | |
| 131 | repaint(); |
| 132 | } |
| 133 | else |
| 134 | { |
| 135 | // Otherwise, perform the default slider action (resetting the slider's value) |
| 136 | juce::Slider::mouseDoubleClick(event); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | void ModulatableSlider::mouseDown(const juce::MouseEvent& event) |
| 141 | { |
nothing calls this directly
no outgoing calls
no test coverage detected