mirror of
https://github.com/wassname/phaser.git
synced 2026-07-23 13:00:41 +08:00
Input no longer sets cursor to default if already set to none
This commit is contained in:
@@ -584,7 +584,7 @@ Phaser.InputHandler.prototype = {
|
||||
|
||||
if (this.useHandCursor && this._pointerData[pointer.id].isDragged === false)
|
||||
{
|
||||
this.game.stage.canvas.style.cursor = "pointer";
|
||||
this.game.canvas.style.cursor = "pointer";
|
||||
}
|
||||
|
||||
this.sprite.events.onInputOver.dispatch(this.sprite, pointer);
|
||||
@@ -605,7 +605,7 @@ Phaser.InputHandler.prototype = {
|
||||
|
||||
if (this.useHandCursor && this._pointerData[pointer.id].isDragged === false)
|
||||
{
|
||||
this.game.stage.canvas.style.cursor = "default";
|
||||
this.game.canvas.style.cursor = "default";
|
||||
}
|
||||
|
||||
if (this.sprite && this.sprite.events)
|
||||
@@ -674,7 +674,7 @@ Phaser.InputHandler.prototype = {
|
||||
// Pointer outside the sprite? Reset the cursor
|
||||
if (this.useHandCursor)
|
||||
{
|
||||
this.game.stage.canvas.style.cursor = "default";
|
||||
this.game.canvas.style.cursor = "default";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user