mirror of
https://github.com/konvajs/konva.git
synced 2026-01-24 13:57:25 +08:00
fix: fixes releasing hit canvas on Layer destroy
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user