Jump to content

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


Ikalou
 Share

Recommended Posts

Hi,

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.

27962731-1a095aa8-6333-11e7-993b-aa2de2fa65c6.png

27962697-fbe7f3c2-6332-11e7-900b-007a78c6137d.png

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.

Quote

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

 Share

  • Recently Browsing   0 members

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