dockview-react 4.1.0 → 4.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-react
3
- * @version 4.1.0
3
+ * @version 4.2.0
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -5224,9 +5224,15 @@
5224
5224
  this._tabsList = document.createElement('div');
5225
5225
  this._tabsList.className = 'dv-tabs-container dv-horizontal';
5226
5226
  this.showTabsOverflowControl = options.showTabsOverflowControl;
5227
- const scrollbar = new Scrollbar(this._tabsList);
5228
- this._element = scrollbar.element;
5229
- this.addDisposables(this._onOverflowTabsChange, this._observerDisposable, scrollbar, this._onWillShowOverlay, this._onDrop, this._onTabDragStart, addDisposableListener(this.element, 'pointerdown', (event) => {
5227
+ if (accessor.options.scrollbars === 'native') {
5228
+ this._element = this._tabsList;
5229
+ }
5230
+ else {
5231
+ const scrollbar = new Scrollbar(this._tabsList);
5232
+ this._element = scrollbar.element;
5233
+ this.addDisposables(scrollbar);
5234
+ }
5235
+ this.addDisposables(this._onOverflowTabsChange, this._observerDisposable, this._onWillShowOverlay, this._onDrop, this._onTabDragStart, addDisposableListener(this.element, 'pointerdown', (event) => {
5230
5236
  if (event.defaultPrevented) {
5231
5237
  return;
5232
5238
  }
@@ -5651,6 +5657,7 @@
5651
5657
  dndEdges: undefined,
5652
5658
  theme: undefined,
5653
5659
  disableTabsOverflowList: undefined,
5660
+ scrollbars: undefined,
5654
5661
  };
5655
5662
  return Object.keys(properties);
5656
5663
  })();