@netless/telebox-insider 1.0.0-alpha.32 → 1.0.0-alpha.33

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": "1.0.0-alpha.32",
3
+ "version": "1.0.0-alpha.33",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "license": "MIT",
@@ -321,16 +321,18 @@ export class TeleBox {
321
321
  });
322
322
 
323
323
  this._sideEffect.addDisposer(
324
- boxRatio$.subscribe((boxRatio) => {
325
- if (boxRatio > 0) {
326
- this.transform(
327
- pxIntrinsicCoord$.value.x,
328
- pxIntrinsicCoord$.value.y,
329
- pxIntrinsicSize$.value.width,
330
- pxIntrinsicSize$.value.height
331
- );
324
+ combine([boxRatio$, minimized$]).subscribe(
325
+ ([boxRatio, minimized]) => {
326
+ if (!minimized && boxRatio > 0) {
327
+ this.transform(
328
+ pxIntrinsicCoord$.value.x,
329
+ pxIntrinsicCoord$.value.y,
330
+ pxIntrinsicSize$.value.width,
331
+ pxIntrinsicSize$.value.height
332
+ );
333
+ }
332
334
  }
333
- })
335
+ )
334
336
  );
335
337
 
336
338
  this._sideEffect.addDisposer(