diff --git a/core/util/cursor.js b/core/util/cursor.js index 6d689e7d..193372da 100644 --- a/core/util/cursor.js +++ b/core/util/cursor.js @@ -106,7 +106,7 @@ export default class Cursor { } clear() { - this._target.style.cursor = 'none'; + this.setLocalCursor('none'); this._canvas.width = 0; this._canvas.height = 0; this._position.x = this._position.x + this._hotSpot.x; @@ -115,6 +115,10 @@ export default class Cursor { this._hotSpot.y = 0; } + setLocalCursor(cursor) { + this._target.style.cursor = cursor; + } + // Mouse events might be emulated, this allows // moving the cursor in such cases move(clientX, clientY) {