canvas: attempt to mitigate memory issue on ios
This commit is contained in:
parent
e6882ee90a
commit
f3b2b8900c
1 changed files with 2 additions and 0 deletions
|
|
@ -225,6 +225,8 @@ class Canvas extends Widget {
|
|||
|
||||
onRemove() {
|
||||
this.off('resize')
|
||||
this.canvas.width = 0
|
||||
this.canvas.height = 0
|
||||
super.onRemove()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue