From 6eb28b890d0c4debbb3520d1f09e329364557aaf Mon Sep 17 00:00:00 2001 From: Daniel Hammerschmidt Date: Mon, 15 Sep 2025 21:43:25 +0200 Subject: [PATCH] Make local cursor accessible/configurable --- core/util/cursor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {