@netless/window-manager 0.4.47 → 0.4.48

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.47",
3
+ "version": "0.4.48",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
package/src/index.ts CHANGED
@@ -590,8 +590,8 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes, any>
590
590
  * 设置 ViewMode
591
591
  */
592
592
  public setViewMode(mode: ViewMode): void {
593
- if (mode === ViewMode.Broadcaster) {
594
- if (this.canOperate) {
593
+ if (mode === ViewMode.Broadcaster || mode === ViewMode.Follower) {
594
+ if (this.canOperate && mode === ViewMode.Broadcaster) {
595
595
  this.appManager?.mainViewProxy.setCameraAndSize();
596
596
  }
597
597
  this.appManager?.mainViewProxy.start();