dockview-core 3.1.0 → 3.2.0

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.2.0
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -4746,8 +4746,8 @@
4746
4746
  this.accessor = accessor;
4747
4747
  this.group = group;
4748
4748
  this.content = undefined;
4749
- this._onChanged = new Emitter();
4750
- this.onChanged = this._onChanged.event;
4749
+ this._onPointDown = new Emitter();
4750
+ this.onPointerDown = this._onPointDown.event;
4751
4751
  this._onDropped = new Emitter();
4752
4752
  this.onDrop = this._onDropped.event;
4753
4753
  this._onDragStart = new Emitter();
@@ -4777,13 +4777,10 @@
4777
4777
  },
4778
4778
  });
4779
4779
  this.onWillShowOverlay = this.dropTarget.onWillShowOverlay;
4780
- this.addDisposables(this._onChanged, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => {
4780
+ this.addDisposables(this._onPointDown, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => {
4781
4781
  this._onDragStart.fire(event);
4782
4782
  }), dragHandler, addDisposableListener(this._element, 'pointerdown', (event) => {
4783
- if (event.defaultPrevented) {
4784
- return;
4785
- }
4786
- this._onChanged.fire(event);
4783
+ this._onPointDown.fire(event);
4787
4784
  }), this.dropTarget.onDrop((event) => {
4788
4785
  this._onDropped.fire(event);
4789
4786
  }), this.dropTarget);
@@ -5084,7 +5081,7 @@
5084
5081
  tab.setContent(panel.view.tab);
5085
5082
  const disposable = new CompositeDisposable(tab.onDragStart((event) => {
5086
5083
  this._onTabDragStart.fire({ nativeEvent: event, panel });
5087
- }), tab.onChanged((event) => {
5084
+ }), tab.onPointerDown((event) => {
5088
5085
  if (event.defaultPrevented) {
5089
5086
  return;
5090
5087
  }
@@ -5111,9 +5108,6 @@
5111
5108
  this.group.model.openPanel(panel);
5112
5109
  }
5113
5110
  break;
5114
- case 1: // middle click
5115
- panel.api.close();
5116
- break;
5117
5111
  }
5118
5112
  }), tab.onDrop((event) => {
5119
5113
  this._onDrop.fire({