pixi pointerevent currentTarget = null ?

Recommended Posts

Hello everyone!
I have pointerover event and i want to get the element i point on (hover on).But when i use event.currentTarget , it is null,also  tried with which is also null. Any suggestions ?

sprite.on('pointerover',function(event){console.log(,event.currentTarget)}); // target and currentTarget are null


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.