mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 02:03:47 +08:00
fix: fixes releasing hit canvas on Layer destroy
This commit is contained in:
parent
c4c7c6c60b
commit
0f00aa9401
@ -469,7 +469,7 @@ export class Layer extends Container<Group | Shape> {
|
||||
}
|
||||
|
||||
destroy(): this {
|
||||
Util.releaseCanvas(this.getNativeCanvasElement(), this.getCanvas()._canvas);
|
||||
Util.releaseCanvas(this.getNativeCanvasElement(), this.getHitCanvas()._canvas);
|
||||
return super.destroy();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user