Greeting,
Say I have a simple diagram with 2 shapes on it a circle and a square.
I’m going to grab the circle and drag it over and drop it onto the square.
When that happens, I’m going to do some interesting stuff like linking them, etc.
That’s fine. You’ve helped me work out many of the issues up to this point.
However there is one additional behaviour that I am having trouble implementing.
As I am dragging the circle across the drawing surface, as the mouse position passed over the square, I want to highlight the square in such a way as to let the user know “hey, you can drop the circle here and we’ll do something cool”. (I’ll probably change the fill or stroke color as an indicator.)
The problem I have is detecting when the mouse passes over the square while dragging the circle.
Since the 2 shapes were already on the drawing, Nevron does not see this as “dragOver” so that event doesn’t fire.
I guess since the preview/ghost shape of the circle is considered top z order, I don’t seem to get a mouseMove, mouseEnter event on the square underneath.
Of course this example is highly simplified but you get the general idea. Can you give me any suggestions on how I could approach this?
Thanks in advance.
Jason