dockview-core 6.2.1 → 6.2.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.
@@ -180,10 +180,20 @@ var OverlayRenderContainer = /** @class */ (function (_super) {
180
180
  focusContainer.style.top = "".concat(top, "px");
181
181
  focusContainer.style.width = "".concat(width, "px");
182
182
  focusContainer.style.height = "".concat(height, "px");
183
- // Reveal after the first position is applied (was hidden to
184
- // prevent a flash at 0,0 before the initial layout fires).
185
- if (focusContainer.style.visibility === 'hidden') {
183
+ // Sync visibility/pointer-events with the panel's current
184
+ // visibility at paint time. visibilityChanged() may have
185
+ // flipped to hidden between scheduling this rAF and now;
186
+ // unconditionally clearing `visibility:hidden` here would
187
+ // leave a hidden panel visually visible at a stale position,
188
+ // because onDidDimensionsChange skips non-visible panels and
189
+ // never recomputes their box on subsequent resizes.
190
+ if (panel.api.isVisible) {
186
191
  focusContainer.style.visibility = '';
192
+ focusContainer.style.pointerEvents = '';
193
+ }
194
+ else {
195
+ focusContainer.style.visibility = 'hidden';
196
+ focusContainer.style.pointerEvents = 'none';
187
197
  }
188
198
  (0, dom_1.toggleClass)(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
189
199
  });
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 6.2.1
3
+ * @version 6.2.2
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -11422,10 +11422,20 @@
11422
11422
  focusContainer.style.top = `${top}px`;
11423
11423
  focusContainer.style.width = `${width}px`;
11424
11424
  focusContainer.style.height = `${height}px`;
11425
- // Reveal after the first position is applied (was hidden to
11426
- // prevent a flash at 0,0 before the initial layout fires).
11427
- if (focusContainer.style.visibility === 'hidden') {
11425
+ // Sync visibility/pointer-events with the panel's current
11426
+ // visibility at paint time. visibilityChanged() may have
11427
+ // flipped to hidden between scheduling this rAF and now;
11428
+ // unconditionally clearing `visibility:hidden` here would
11429
+ // leave a hidden panel visually visible at a stale position,
11430
+ // because onDidDimensionsChange skips non-visible panels and
11431
+ // never recomputes their box on subsequent resizes.
11432
+ if (panel.api.isVisible) {
11428
11433
  focusContainer.style.visibility = '';
11434
+ focusContainer.style.pointerEvents = '';
11435
+ }
11436
+ else {
11437
+ focusContainer.style.visibility = 'hidden';
11438
+ focusContainer.style.pointerEvents = 'none';
11429
11439
  }
11430
11440
  toggleClass(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
11431
11441
  });