[Solved] Mouse Event not giving me the relatedObject on Mac

I have a sprite, and am capturing the click event on it. Even tried setting the buttonMode to true, but no luck.

This is the toString on the event:
[MouseEvent type=click bubbles=true cancelable=false localX=14 localY=18 relatedObject=null ctrlKey=false altKey=false shiftKey=false buttonDown=false delta=0]

It makes programming a UI really difficult :frowning:

This is not implemented, I’ve never used event.relatedObject, I don’t think. Is it equal to the event.currentTarget or the event.target?

1 Like

Sorry, the Click event doesn’t have the relatedObject… you’re right. How silly of me.

Thanks!