Sign in to follow this  
mattbrand

Custom cursor that persists

Recommended Posts

Hey all!

I am trying to use a custom cursor in my game. It works at first, but when I roll over a Phaser button (in latest Chrome and latest Safari), it switches back to the regular hand cursor.

I have tried setting the cursor through CSS:

canvas {
  cursor: url('./assets/images/hand_blue.png'), auto;
}

And Phaser:

game.canvas.style.cursor = "url(assets/images/hand_blue.png), auto";

It fails using both methods, when the input goes over a Phaser button. Any thoughts on this?

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.