Fix flickering when resizing stage or timeline

This commit is contained in:
Skyler Lehmkuhl 2024-12-29 17:28:22 -05:00
parent a5295b8f0e
commit f2e633102c
1 changed files with 2 additions and 0 deletions

View File

@ -3460,6 +3460,7 @@ function stage() {
stage.width = parseInt(canvasStyles.width);
stage.height = parseInt(canvasStyles.height);
updateUI()
renderAll()
}
const resizeObserver = new ResizeObserver(() => {
const currentTime = Date.now();
@ -4406,6 +4407,7 @@ function timeline() {
timeline_cvs.width = parseInt(canvasStyles.width);
timeline_cvs.height = parseInt(canvasStyles.height);
updateLayers()
renderAll()
}
// Set up ResizeObserver to watch for changes in the canvas size