diff --git a/src/scaffolding/scaffolding.js b/src/scaffolding/scaffolding.js index a774dbd..7addf4b 100644 --- a/src/scaffolding/scaffolding.js +++ b/src/scaffolding/scaffolding.js @@ -324,9 +324,11 @@ class Scaffolding extends EventTarget { } // TODO: remove when https://github.com/TurboWarp/packager/issues/213 is fixed this.vm.on('STAGE_SIZE_CHANGED', (width, height) => { - this.width = width; - this.height = height; - this.relayout(); + if (this.width !== width || this.height !== height) { + this.width = width; + this.height = height; + this.relayout(); + } }); this.cloudManager = new Cloud.CloudManager(this);