klesken Posted February 10, 2014 Share Posted February 10, 2014 HeyaI'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! Link to comment Share on other sites More sharing options...
zargap Posted February 10, 2014 Share Posted February 10, 2014 What browsers does it happen in? I've done a little with changing cursors for a point-and-click game I made, I found it to be really really inconsistent in pretty much anything :/ Link to comment Share on other sites More sharing options...
klesken Posted February 10, 2014 Author Share Posted February 10, 2014 Ah :s It doesn't stay forever in IE, it just delays a bit(like 1-2 seconds) but in Chrome and Firefox it stays as a hand. Link to comment Share on other sites More sharing options...
richpixel Posted February 26, 2014 Share Posted February 26, 2014 Did you find a clean way to fix this? I ran into this today, and for now am just using css to reset the cursor: function revertCursor() { $(game.canvas).css('cursor', 'default'); } Link to comment Share on other sites More sharing options...
Starboar Posted June 26, 2014 Share Posted June 26, 2014 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. Link to comment Share on other sites More sharing options...
cloakedninjas Posted August 27, 2015 Share Posted August 27, 2015 Sorry to bump - but this seems to be an issue still (unless there's a solution I haven't found) This occurs for me when you remove a button you're currently hovering. geros 1 Link to comment Share on other sites More sharing options...
geros Posted October 23, 2015 Share Posted October 23, 2015 This happens to me as well when i click on a button and then doesn't revert to hand when i hover it . Link to comment Share on other sites More sharing options...
Recommended Posts