Jump to content

Button: Toggling inputEnabled off and on removes the hand cursor on hover


Recommended Posts


It seems toggling inputEnabled off and on again on a Button removes the hand cursor on hover. See before / after images.

I made a codepen of the issue here:

Is that meant to happen? If so, how can I enable the hand cursor again after changing inputEnabled back to true? or maybe I shouldn't use inputEnabled at all? I want to disable the button temporarily.

Thanks in advance for any help or advice.



Edited by Ikalou
more infos
Link to comment
Share on other sites

Nevermind, the anwser is in the documentation: https://photonstorm.github.io/phaser-ce/Phaser.Button.html#inputEnabled.


If you want to temporarily disable input for a Game Object, then it's better to set input.enabled = false, as it won't reset any of the Input Handlers internal properties.

I will leave it to a moderator to decide weather to kill the thread or leave it for people to find.

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...