MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / mouseDoubleClick

Method mouseDoubleClick

Source/GUI/ModulatableSlider.cpp:121–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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
140void ModulatableSlider::mouseDown(const juce::MouseEvent& event)
141{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected