dockview-core 3.1.0 → 3.1.1

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 3.1.0
3
+ * @version 3.1.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -4742,8 +4742,8 @@ define(['exports'], (function (exports) { 'use strict';
4742
4742
  this.accessor = accessor;
4743
4743
  this.group = group;
4744
4744
  this.content = undefined;
4745
- this._onChanged = new Emitter();
4746
- this.onChanged = this._onChanged.event;
4745
+ this._onPointDown = new Emitter();
4746
+ this.onPointerDown = this._onPointDown.event;
4747
4747
  this._onDropped = new Emitter();
4748
4748
  this.onDrop = this._onDropped.event;
4749
4749
  this._onDragStart = new Emitter();
@@ -4773,13 +4773,10 @@ define(['exports'], (function (exports) { 'use strict';
4773
4773
  },
4774
4774
  });
4775
4775
  this.onWillShowOverlay = this.dropTarget.onWillShowOverlay;
4776
- this.addDisposables(this._onChanged, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => {
4776
+ this.addDisposables(this._onPointDown, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => {
4777
4777
  this._onDragStart.fire(event);
4778
4778
  }), dragHandler, addDisposableListener(this._element, 'pointerdown', (event) => {
4779
- if (event.defaultPrevented) {
4780
- return;
4781
- }
4782
- this._onChanged.fire(event);
4779
+ this._onPointDown.fire(event);
4783
4780
  }), this.dropTarget.onDrop((event) => {
4784
4781
  this._onDropped.fire(event);
4785
4782
  }), this.dropTarget);
@@ -5080,7 +5077,7 @@ define(['exports'], (function (exports) { 'use strict';
5080
5077
  tab.setContent(panel.view.tab);
5081
5078
  const disposable = new CompositeDisposable(tab.onDragStart((event) => {
5082
5079
  this._onTabDragStart.fire({ nativeEvent: event, panel });
5083
- }), tab.onChanged((event) => {
5080
+ }), tab.onPointerDown((event) => {
5084
5081
  if (event.defaultPrevented) {
5085
5082
  return;
5086
5083
  }
@@ -5107,9 +5104,6 @@ define(['exports'], (function (exports) { 'use strict';
5107
5104
  this.group.model.openPanel(panel);
5108
5105
  }
5109
5106
  break;
5110
- case 1: // middle click
5111
- panel.api.close();
5112
- break;
5113
5107
  }
5114
5108
  }), tab.onDrop((event) => {
5115
5109
  this._onDrop.fire({