mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-13 15:00:49 -04:00
set canvas to dirty when clearing pen canvas
This commit is contained in:
parent
abd76720ee
commit
ea786aa4bd
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@ class PenSkin extends Skin {
|
|||
clear () {
|
||||
const ctx = this._canvas.getContext('2d');
|
||||
ctx.clearRect(0, 0, this._canvas.width, this._canvas.height);
|
||||
this._canvasDirty = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue