@netless/window-manager 0.4.37 → 0.4.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "0.4.37",
3
+ "version": "0.4.38",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -39,7 +39,9 @@ export class MainViewProxy {
39
39
  });
40
40
  this.sideEffectManager.add(() => {
41
41
  return emitter.on("startReconnect", () => {
42
- this.mainView.release();
42
+ if (!this.didRelease) {
43
+ this.mainView.release();
44
+ }
43
45
  });
44
46
  });
45
47
  }
@@ -119,9 +121,6 @@ export class MainViewProxy {
119
121
  public onUpdateContainerSizeRatio = () => {
120
122
  const size = this.store.getMainViewSize();
121
123
  this.sizeChangeHandler(size);
122
- if (size.id === this.manager.uid) {
123
- this.setCameraAndSize();
124
- }
125
124
  }
126
125
 
127
126
  public get view(): View {