Current Behavior
Sometimes, quickly creating and destroying LayoutContainers with "overflow: hidden" or "overflow: scroll" can result in console errors. I was not able to reproduce it consistently, but I crashes while trying to redraw the trackpad mask for an already destroyed container. It happends because the recalculation of the mask happends 1ms after the background has already been drawn, and does not check if the container is stil alive at that point.
Possible Solution
Check if the container is destroyed and do not attempt to recalculate the mask if it is.


Current Behavior
Sometimes, quickly creating and destroying LayoutContainers with "overflow: hidden" or "overflow: scroll" can result in console errors. I was not able to reproduce it consistently, but I crashes while trying to redraw the trackpad mask for an already destroyed container. It happends because the recalculation of the mask happends 1ms after the background has already been drawn, and does not check if the container is stil alive at that point.
Possible Solution
Check if the container is destroyed and do not attempt to recalculate the mask if it is.