
In the highly artistic drawing above, the green square is the baby pink. Pink is wrapped around green according to my function, so the green square can be anything - a hyperlink, image, button, etc.
I want to capture a click on the pink div ONLY if it is not a click on the green element either.
This can be done by transferring the logical value with the mouse center to the green square, but this seems like a messy way of doing it for me.
Any clues?
IMPORTANT CHANGE: I cannot communicate with the green square at all, so I am not adding anything to the click event.
source share