How to force the sliders to handle mouseWheelMove even when mouseButtonDown

Hi! I want to create a dragger on a spectrum to control the freq, gain and Q of a filter. I connect

  • a juce::ComponentDragger to freq & gain with a customized ParameterAttachment
  • an invisible juce::Slider to Q with another juce::AudioProcessorValueTreeState::SliderAttachment (and I forward mouse-wheel event to this slider)

Everything works well independently. However, if I drag the dragger when scroll the mouse-wheel, the Q value does not change. It is because juce::Slider ignores any mous-wheel event if the mouse-button is down.

Therefore I have to create a temp mouseEvent each time and pass it to the slider.

juce::MouseEvent e{
    event.source, event.position,
    event.mods.withoutMouseButtons(), // remove mouse button events
    event.pressure, event.orientation, event.rotation,
    event.tiltX, event.tiltY,
    event.eventComponent, event.originalComponent,
    event.eventTime, event.mouseDownPosition, event.mouseDownTime,
    event.getNumberOfClicks(), false
};

Is there a better solution to this?