Adding a guard on Scene.resize to prevent unnecessary resizes