Input no longer sets cursor to default if already set to none

This commit is contained in:
Richard Davey
2013-12-26 00:52:01 +00:00
parent 167a498a5e
commit 923a10ee81
3 changed files with 9 additions and 4 deletions
+5 -1
View File
@@ -488,7 +488,11 @@ Phaser.Input.prototype = {
}
this.currentPointers = 0;
this.game.stage.canvas.style.cursor = "default";
if (this.game.canvas.style.cursor !== 'none')
{
this.game.canvas.style.cursor = 'default';
}
if (hard === true)
{