dockview-core
Advanced tools
Comparing version
@@ -83,5 +83,11 @@ "use strict"; | ||
_this.showTabsOverflowControl = options.showTabsOverflowControl; | ||
var scrollbar = new scrollbar_1.Scrollbar(_this._tabsList); | ||
_this._element = scrollbar.element; | ||
_this.addDisposables(_this._onOverflowTabsChange, _this._observerDisposable, scrollbar, _this._onWillShowOverlay, _this._onDrop, _this._onTabDragStart, (0, events_1.addDisposableListener)(_this.element, 'pointerdown', function (event) { | ||
if (accessor.options.scrollbars === 'native') { | ||
_this._element = _this._tabsList; | ||
} | ||
else { | ||
var scrollbar = new scrollbar_1.Scrollbar(_this._tabsList); | ||
_this._element = scrollbar.element; | ||
_this.addDisposables(scrollbar); | ||
} | ||
_this.addDisposables(_this._onOverflowTabsChange, _this._observerDisposable, _this._onWillShowOverlay, _this._onDrop, _this._onTabDragStart, (0, events_1.addDisposableListener)(_this.element, 'pointerdown', function (event) { | ||
if (event.defaultPrevented) { | ||
@@ -88,0 +94,0 @@ return; |
@@ -61,2 +61,9 @@ import { DockviewApi } from '../api/component.api'; | ||
disableTabsOverflowList?: boolean; | ||
/** | ||
* Select `native` to use built-in scrollbar behaviours and `custom` to use an internal implementation | ||
* that allows for improved scrollbar overlay UX. | ||
* | ||
* This is only applied to the tab header section. Defaults to `custom`. | ||
*/ | ||
scrollbars?: 'native' | 'custom'; | ||
} | ||
@@ -63,0 +70,0 @@ export interface DockviewDndOverlayEvent extends IAcceptableEvent { |
@@ -56,2 +56,3 @@ "use strict"; | ||
disableTabsOverflowList: undefined, | ||
scrollbars: undefined, | ||
}; | ||
@@ -58,0 +59,0 @@ return Object.keys(properties); |
@@ -58,5 +58,11 @@ import { getPanelData } from '../../../dnd/dataTransfer'; | ||
this.showTabsOverflowControl = options.showTabsOverflowControl; | ||
const scrollbar = new Scrollbar(this._tabsList); | ||
this._element = scrollbar.element; | ||
this.addDisposables(this._onOverflowTabsChange, this._observerDisposable, scrollbar, this._onWillShowOverlay, this._onDrop, this._onTabDragStart, addDisposableListener(this.element, 'pointerdown', (event) => { | ||
if (accessor.options.scrollbars === 'native') { | ||
this._element = this._tabsList; | ||
} | ||
else { | ||
const scrollbar = new Scrollbar(this._tabsList); | ||
this._element = scrollbar.element; | ||
this.addDisposables(scrollbar); | ||
} | ||
this.addDisposables(this._onOverflowTabsChange, this._observerDisposable, this._onWillShowOverlay, this._onDrop, this._onTabDragStart, addDisposableListener(this.element, 'pointerdown', (event) => { | ||
if (event.defaultPrevented) { | ||
@@ -63,0 +69,0 @@ return; |
@@ -61,2 +61,9 @@ import { DockviewApi } from '../api/component.api'; | ||
disableTabsOverflowList?: boolean; | ||
/** | ||
* Select `native` to use built-in scrollbar behaviours and `custom` to use an internal implementation | ||
* that allows for improved scrollbar overlay UX. | ||
* | ||
* This is only applied to the tab header section. Defaults to `custom`. | ||
*/ | ||
scrollbars?: 'native' | 'custom'; | ||
} | ||
@@ -63,0 +70,0 @@ export interface DockviewDndOverlayEvent extends IAcceptableEvent { |
@@ -34,2 +34,3 @@ import { AcceptableEvent } from '../events'; | ||
disableTabsOverflowList: undefined, | ||
scrollbars: undefined, | ||
}; | ||
@@ -36,0 +37,0 @@ return Object.keys(properties); |
{ | ||
"name": "dockview-core", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13925299
0.06%104335
0.08%