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.
@@ -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
  */
@@ -11386,10 +11386,20 @@ class OverlayRenderContainer extends CompositeDisposable {
11386
11386
  focusContainer.style.top = `${top}px`;
11387
11387
  focusContainer.style.width = `${width}px`;
11388
11388
  focusContainer.style.height = `${height}px`;
11389
- // Reveal after the first position is applied (was hidden to
11390
- // prevent a flash at 0,0 before the initial layout fires).
11391
- if (focusContainer.style.visibility === 'hidden') {
11389
+ // Sync visibility/pointer-events with the panel's current
11390
+ // visibility at paint time. visibilityChanged() may have
11391
+ // flipped to hidden between scheduling this rAF and now;
11392
+ // unconditionally clearing `visibility:hidden` here would
11393
+ // leave a hidden panel visually visible at a stale position,
11394
+ // because onDidDimensionsChange skips non-visible panels and
11395
+ // never recomputes their box on subsequent resizes.
11396
+ if (panel.api.isVisible) {
11392
11397
  focusContainer.style.visibility = '';
11398
+ focusContainer.style.pointerEvents = '';
11399
+ }
11400
+ else {
11401
+ focusContainer.style.visibility = 'hidden';
11402
+ focusContainer.style.pointerEvents = 'none';
11393
11403
  }
11394
11404
  toggleClass(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
11395
11405
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview-core",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Zero dependency layout manager supporting tabs, groups, grids and splitviews for vanilla TypeScript",
5
5
  "keywords": [
6
6
  "splitview",