How to give components mouse Wheel events without click?


This is in windows 10 , I have two custom components in my view. Any time the mouse hovers above these components I want them to respond to mouseWheelMove. Which happens except the user has to click at least once on these components before mouseWheelMove takes effect. How do I make it so that the user does not have to click on the components to activate mouseWheelMove?


What do you mean by “custom components”? Certainly all juce components will get mousewheel events without needing to be focused.


Sorry I think this is actually a problem on my end. My GL camera is not being initialized properly until the first mouseDown. By custom I just meant a subclass of Component