clear cursor display when shutting down

This commit is contained in:
ari melody 2025-03-31 13:44:29 +01:00
parent ed86aff2a2
commit 5cc9a1ca76
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E

View file

@ -382,6 +382,8 @@ function cursorDestroy() {
document.removeEventListener('keypress', handleKeyPress);
document.removeEventListener('keyup', handleKeyUp);
ctx.clearRect(0, 0, canvas.width, canvas.height);
cursors.clear();
myCursor = null;