Skip to content

useHandCursor not working for planes #6510

@Baegus

Description

@Baegus

Version

  • Phaser Version: 3.60.0
  • Operating system: Windows 10

Description

It seems that "plane" gameObjects do not support the useHandCursor setting when calling setInteractive(). The interactivity works, but the cursor stays the same. The object still supports pointerover and pointerout events, so it can be implemented manually.

Example Test Code

const plane = this.add.plane(100,100,"myTexture");
plane.setInteractive({useHandCursor: true}); // this works, but doesn't set the cursor on pointerover

// My hacky implementation of useHandCursor follows:
plane.on("pointerover",() => {
	this.game.canvas.style.cursor = "pointer";
});
plane.on("pointerout",() => {
	this.game.canvas.style.cursor = "default";
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions