@netless/telebox-insider 0.2.15 → 0.2.16
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
|
@@ -427,6 +427,11 @@ export class TeleBoxManager {
|
|
|
427
427
|
box.events.on(TELE_BOX_EVENT.VisualResize, () => {
|
|
428
428
|
this.events.emit(TELE_BOX_MANAGER_EVENT.VisualResize, box);
|
|
429
429
|
});
|
|
430
|
+
box.events.on(TELE_BOX_EVENT.ZIndex, () => {
|
|
431
|
+
if (this.topBox && box.zIndex > this.topBox.zIndex) {
|
|
432
|
+
this.topBox$.setValue(box);
|
|
433
|
+
}
|
|
434
|
+
});
|
|
430
435
|
this.events.emit(TELE_BOX_MANAGER_EVENT.Created, box);
|
|
431
436
|
|
|
432
437
|
return box;
|