I’m coding a Piano Roll editor. The notes inside the editor are Components. I want the mouse clicks to pass thru them, so I use setInterceptsMouseClicks(false, false) with the notes.
Problem: when using setInterceptsMouseClicks(false, false) the note components also don’t receive any mouseEnter() mouseExit() anymore…
What can I do to make them let the clicks pass thru, but still react to mouseEnter’s and mouseExit’s, and even possibly mouseMove’s ? Seems tricky to me.
The only possibility that comes to my mind is to “hardwire” mouseDown(), mouseUp(), mouseDrag() of the note component to the parent component’s respective mouseDown(), mouseUp() and mouseDrag() functions (with translation of the mouse coordinates of the MouseEvent, ofcourse).