@netless/window-manager 0.2.14 → 0.2.15

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.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",
package/src/AppManager.ts CHANGED
@@ -51,8 +51,6 @@ export class AppManager {
51
51
  this.appProxies
52
52
  );
53
53
  this.displayer.callbacks.on(this.eventName, this.displayerStateListener);
54
- this.displayerWritableListener(!this.room?.isWritable);
55
- this.displayer.callbacks.on("onEnableWriteNowChanged", this.displayerWritableListener);
56
54
  this.appListeners.addListeners();
57
55
 
58
56
  this.refresher = new ReconnectRefresher(this.room, this);
@@ -90,6 +88,8 @@ export class AppManager {
90
88
  this.room?.setScenePath(mainScenePath);
91
89
  }
92
90
  }
91
+ this.displayerWritableListener(!this.room?.isWritable);
92
+ this.displayer.callbacks.on("onEnableWriteNowChanged", this.displayerWritableListener);
93
93
  }
94
94
 
95
95
  /**
@@ -226,6 +226,9 @@ export class AppManager {
226
226
  if (!this.delegate.focus) {
227
227
  this.viewManager.switchMainViewModeToWriter();
228
228
  }
229
+ this.mainView.disableCameraTransform = false;
230
+ } else {
231
+ this.mainView.disableCameraTransform = true;
229
232
  }
230
233
  }
231
234