Swipe over multiple buttons


#1

Hi all,
I’m trying to implement a behaviour where the user clicks on one a in grid of buttons, then drags the mouse pointer over the surrounding buttons (without releasing the mouse button) and each button along the pointer path gets triggered. The problem is that after the first button has received mouseDown(), the next ones receive no mouse notifications; I have overriden mouseEnter(), but it doesn’t get called until the mouse button is released, as if the first button captures the mouse movements during the drag that started on it. Any suggestions?

-Fabrizio


#2

Doh! The dox for Component states it clearly:

I have an container component hosting the buttons grid… shall I disable the buttons, so they ignore the mouse events and I handle them in the container?

-Fabrizio


#3

Found this thread is on the same subject:

http://www.juce.com/viewtopic.php?f=2&t=9437