@netless/telebox-insider 0.3.0-beta.0 → 0.3.0-beta.2

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/telebox-insider",
3
- "version": "0.3.0-beta.0",
3
+ "version": "0.3.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "author": "CRIMX <straybugs@gmail.com> (https://github.com/crimx/)",
@@ -480,8 +480,8 @@ export class TeleBoxManager {
480
480
  }
481
481
  if (topBox && topBoxId !== topBox.id) {
482
482
  this.makeBoxTop(topBox, skipUpdate);
483
- this.focusTopBox();
484
483
  this.topBox$.setValue(topBox);
484
+ this.focusTopBox();
485
485
  }
486
486
  if (this.maxTitleBar) {
487
487
  this.maxTitleBar.setBoxesStatus(boxesStatus);
@@ -565,7 +565,7 @@ export class TeleBoxManager {
565
565
  this.setBoxStatus(box.id, TELE_BOX_STATE.Normal);
566
566
  } else {
567
567
  this.boxes.forEach((box) => {
568
- if (box.boxStatus !== TELE_BOX_STATE.Maximized) {
568
+ if (box.boxStatus === TELE_BOX_STATE.Normal) {
569
569
  this.setBoxStatus(box.id, TELE_BOX_STATE.Maximized);
570
570
  }
571
571
  });