Title: juce::Slider mouse wheel works in Standalone but not in VST3 inside Ableton Live
Hi everyone,
I’m developing an audio plugin with JUCE and I have a problem with mouse wheel interaction on a custom knob.
I have a custom NeonKnob component containing a juce::Slider. The slider is configured as:
slider.setSliderStyle(
juce::Slider::RotaryHorizontalVerticalDrag);
slider.setScrollWheelEnabled(true);
The mouse wheel works correctly when I run the plugin as a Standalone application, but when I load the same plugin as a VST3 in Ableton Live, the mouse wheel does nothing.
I also tried:
slider.setSliderStyle(juce::Slider::Rotary);
but the result is exactly the same.
I tried overriding:
void mouseWheelMove(
const juce::MouseEvent& event,
const juce::MouseWheelDetails& wheel) override;
in my custom component and logging the event with:
DBG("MOUSE WHEEL: " + juce::String(wheel.deltaY));
However, when the plugin is running inside Ableton Live, the callback is not triggered.
The interesting part is that the exact same plugin works correctly in Standalone mode.
I’m currently using JUCE with a VST3 plugin loaded in Ableton Live.
Could this be related to how the VST3 wrapper or the host handles MouseWheelEvents?
Is there anything specific I need to implement or configure in JUCE so that juce::Slider receives mouse wheel events correctly when running as a VST3 inside Ableton Live?
Any advice on where the mouse wheel event might be getting intercepted would be greatly appreciated.
Thanks!