Sign in to follow this  
klesken

Link cursor bug(not switching back cursor)

Recommended Posts

Heya

I'm having this bug that makes it so after I remove/hide something that's clickable the "hand-cursor" becomes the active cursor forever.

 

This code brings it on, I've tried looking at source code, and following the code it seems to change back, but it doesn't.

	function playCallback(button, pointer){		this.buttons.menuGroup.visible = false;	}

menuGroup is a Phaser.Group. Also wondering what's the "best" option if I want something like a menu to dissapear when the game starts, visible = false is what I'm using now.

Is there something better?

 

Thanks in advance!

Share this post


Link to post
Share on other sites

Anyone found a cleaner way of dealing with this than adding an onInputOut handler to fix it?

 

In my case i'm setting the cursor of the playfield via CSS  

    cursor: url('/sprites/pointer.png'), pointer;

But the first time the cursor hovers over a sprite with useHandCursor then it becomes the normal OS cursor, when I move off the sprite it does switch back to a pointer, but it's the Operating System's white pointer and not my sprite any more.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.