@lvce-editor/main-area-worker 9.74.3 → 9.74.4
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.
|
@@ -4010,6 +4010,7 @@ const HandleTabDragOver = 31;
|
|
|
4010
4010
|
const HandleTabsDragOver = 32;
|
|
4011
4011
|
const HandleFocus = 33;
|
|
4012
4012
|
const HandleGroupMouseDown = 34;
|
|
4013
|
+
const HandleCloseButtonMouseDown = 35;
|
|
4013
4014
|
|
|
4014
4015
|
const dragOverlayVirtualDom = {
|
|
4015
4016
|
childCount: 0,
|
|
@@ -4418,6 +4419,7 @@ const renderTabActions = (isDirty, tabIndex, groupIndex) => {
|
|
|
4418
4419
|
'data-groupIndex': groupIndex,
|
|
4419
4420
|
'data-index': tabIndex,
|
|
4420
4421
|
onClick: HandleClickClose,
|
|
4422
|
+
onMouseDown: HandleCloseButtonMouseDown,
|
|
4421
4423
|
type: Button$2
|
|
4422
4424
|
}, dirtyIconNode];
|
|
4423
4425
|
}
|
|
@@ -4428,6 +4430,7 @@ const renderTabActions = (isDirty, tabIndex, groupIndex) => {
|
|
|
4428
4430
|
'data-groupIndex': groupIndex,
|
|
4429
4431
|
'data-index': tabIndex,
|
|
4430
4432
|
onClick: HandleClickClose,
|
|
4433
|
+
onMouseDown: HandleCloseButtonMouseDown,
|
|
4431
4434
|
type: Button$2
|
|
4432
4435
|
}, closeIconNode$1];
|
|
4433
4436
|
};
|
|
@@ -8949,6 +8952,10 @@ const renderEventListeners = () => {
|
|
|
8949
8952
|
name: HandleClickClose,
|
|
8950
8953
|
params: ['handleClickCloseTab', 'event.currentTarget.dataset.groupIndex', 'event.currentTarget.dataset.index'],
|
|
8951
8954
|
stopPropagation: true
|
|
8955
|
+
}, {
|
|
8956
|
+
name: HandleCloseButtonMouseDown,
|
|
8957
|
+
params: ['handleCloseButtonMouseDown'],
|
|
8958
|
+
stopPropagation: true
|
|
8952
8959
|
}, {
|
|
8953
8960
|
name: HandleClickTab,
|
|
8954
8961
|
params: ['handleClickTab', 'event.currentTarget.dataset.groupIndex', 'event.currentTarget.dataset.index', Button$1]
|
|
@@ -9611,6 +9618,7 @@ const commandMap = {
|
|
|
9611
9618
|
'MainArea.handleClickCloseTab': wrapSerialCommand(handleClickCloseTab),
|
|
9612
9619
|
'MainArea.handleClickTab': wrapSerialCommand(handleClickTab),
|
|
9613
9620
|
'MainArea.handleClickTogglePreview': wrapSerialCommand(handleClickTogglePreview),
|
|
9621
|
+
'MainArea.handleCloseButtonMouseDown': state => state,
|
|
9614
9622
|
'MainArea.handleContextMenu': wrapSerialCommand(handleContextMenu),
|
|
9615
9623
|
'MainArea.handleDoubleClick': wrapSerialCommand(handleDoubleClick),
|
|
9616
9624
|
'MainArea.handleDragEnd': wrapSerialCommand(resetPointerDown),
|