clear cursor display when shutting down
This commit is contained in:
parent
ed86aff2a2
commit
5cc9a1ca76
1 changed files with 2 additions and 0 deletions
|
@ -381,6 +381,8 @@ function cursorDestroy() {
|
|||
document.removeEventListener('mouseup', handleMouseUp);
|
||||
document.removeEventListener('keypress', handleKeyPress);
|
||||
document.removeEventListener('keyup', handleKeyUp);
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
cursors.clear();
|
||||
myCursor = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue