Skip to content

Commit aceecf0

Browse files
committed
InputManager.resetCursor will now check if the canvas element still exists before resetting the cursor on it. Fix phaserjs#4662
1 parent a1dad35 commit aceecf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/InputManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ var InputManager = new Class({
458458
*/
459459
resetCursor: function (interactiveObject)
460460
{
461-
if (interactiveObject.cursor)
461+
if (interactiveObject.cursor && this.canvas)
462462
{
463463
this.canvas.style.cursor = this.defaultCursor;
464464
}

0 commit comments

Comments
 (0)