dockview-core
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -15,4 +15,4 @@ import { Event } from '../../../events'; | ||
private content; | ||
private readonly _onChanged; | ||
readonly onChanged: Event<MouseEvent>; | ||
private readonly _onPointDown; | ||
readonly onPointerDown: Event<MouseEvent>; | ||
private readonly _onDropped; | ||
@@ -19,0 +19,0 @@ readonly onDrop: Event<DroptargetEvent>; |
@@ -54,4 +54,4 @@ "use strict"; | ||
_this.content = undefined; | ||
_this._onChanged = new events_1.Emitter(); | ||
_this.onChanged = _this._onChanged.event; | ||
_this._onPointDown = new events_1.Emitter(); | ||
_this.onPointerDown = _this._onPointDown.event; | ||
_this._onDropped = new events_1.Emitter(); | ||
@@ -86,9 +86,6 @@ _this.onDrop = _this._onDropped.event; | ||
_this.onWillShowOverlay = _this.dropTarget.onWillShowOverlay; | ||
_this.addDisposables(_this._onChanged, _this._onDropped, _this._onDragStart, dragHandler.onDragStart(function (event) { | ||
_this.addDisposables(_this._onPointDown, _this._onDropped, _this._onDragStart, dragHandler.onDragStart(function (event) { | ||
_this._onDragStart.fire(event); | ||
}), dragHandler, (0, events_1.addDisposableListener)(_this._element, 'pointerdown', function (event) { | ||
if (event.defaultPrevented) { | ||
return; | ||
} | ||
_this._onChanged.fire(event); | ||
_this._onPointDown.fire(event); | ||
}), _this.dropTarget.onDrop(function (event) { | ||
@@ -95,0 +92,0 @@ _this._onDropped.fire(event); |
@@ -256,3 +256,3 @@ "use strict"; | ||
_this._onTabDragStart.fire({ nativeEvent: event, panel: panel }); | ||
}), tab.onChanged(function (event) { | ||
}), tab.onPointerDown(function (event) { | ||
if (event.defaultPrevented) { | ||
@@ -284,5 +284,2 @@ return; | ||
break; | ||
case 1: // middle click | ||
panel.api.close(); | ||
break; | ||
} | ||
@@ -289,0 +286,0 @@ }), tab.onDrop(function (event) { |
@@ -15,4 +15,4 @@ import { Event } from '../../../events'; | ||
private content; | ||
private readonly _onChanged; | ||
readonly onChanged: Event<MouseEvent>; | ||
private readonly _onPointDown; | ||
readonly onPointerDown: Event<MouseEvent>; | ||
private readonly _onDropped; | ||
@@ -19,0 +19,0 @@ readonly onDrop: Event<DroptargetEvent>; |
@@ -34,4 +34,4 @@ import { addDisposableListener, Emitter } from '../../../events'; | ||
this.content = undefined; | ||
this._onChanged = new Emitter(); | ||
this.onChanged = this._onChanged.event; | ||
this._onPointDown = new Emitter(); | ||
this.onPointerDown = this._onPointDown.event; | ||
this._onDropped = new Emitter(); | ||
@@ -66,9 +66,6 @@ this.onDrop = this._onDropped.event; | ||
this.onWillShowOverlay = this.dropTarget.onWillShowOverlay; | ||
this.addDisposables(this._onChanged, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => { | ||
this.addDisposables(this._onPointDown, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => { | ||
this._onDragStart.fire(event); | ||
}), dragHandler, addDisposableListener(this._element, 'pointerdown', (event) => { | ||
if (event.defaultPrevented) { | ||
return; | ||
} | ||
this._onChanged.fire(event); | ||
this._onPointDown.fire(event); | ||
}), this.dropTarget.onDrop((event) => { | ||
@@ -75,0 +72,0 @@ this._onDropped.fire(event); |
@@ -182,3 +182,3 @@ import { CompositeDisposable, } from '../../../lifecycle'; | ||
this._onTabDragStart.fire({ nativeEvent: event, panel }); | ||
}), tab.onChanged((event) => { | ||
}), tab.onPointerDown((event) => { | ||
if (event.defaultPrevented) { | ||
@@ -210,5 +210,2 @@ return; | ||
break; | ||
case 1: // middle click | ||
panel.api.close(); | ||
break; | ||
} | ||
@@ -215,0 +212,0 @@ }), tab.onDrop((event) => { |
{ | ||
"name": "dockview-core", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"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
12801957
96826