@lvce-editor/renderer-process 30.12.0 → 30.12.2
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.
- package/dist/rendererProcessMain.js +11 -18
- package/package.json +1 -1
|
@@ -5162,14 +5162,7 @@ const getNodeIndex = $Node => {
|
|
|
5162
5162
|
};
|
|
5163
5163
|
|
|
5164
5164
|
const get$ItemFromEvent = event => {
|
|
5165
|
-
|
|
5166
|
-
if ($Target.classList.contains('ActivityBarItem')) {
|
|
5167
|
-
return $Target;
|
|
5168
|
-
}
|
|
5169
|
-
if ($Target.classList.contains('ActivityBarItemIcon')) {
|
|
5170
|
-
return $Target.parentNode;
|
|
5171
|
-
}
|
|
5172
|
-
return undefined;
|
|
5165
|
+
return event.target.closest?.('.ActivityBarItem');
|
|
5173
5166
|
};
|
|
5174
5167
|
const handleMouseDown$3 = event => {
|
|
5175
5168
|
const {
|
|
@@ -7395,8 +7388,9 @@ const handleHeaderClick$1 = event => {
|
|
|
7395
7388
|
handleClickTab$1(target, uid);
|
|
7396
7389
|
return;
|
|
7397
7390
|
}
|
|
7398
|
-
|
|
7399
|
-
|
|
7391
|
+
const action = target.closest?.('.IconButton[data-command]');
|
|
7392
|
+
if (action) {
|
|
7393
|
+
handleClickAction$1(action, uid);
|
|
7400
7394
|
}
|
|
7401
7395
|
};
|
|
7402
7396
|
|
|
@@ -7587,8 +7581,9 @@ const handleHeaderClick = event => {
|
|
|
7587
7581
|
target
|
|
7588
7582
|
} = event;
|
|
7589
7583
|
const uid = fromEvent(event);
|
|
7590
|
-
|
|
7591
|
-
|
|
7584
|
+
const action = target.closest?.('.IconButton[data-command]');
|
|
7585
|
+
if (action) {
|
|
7586
|
+
handleClickAction(action, uid);
|
|
7592
7587
|
}
|
|
7593
7588
|
};
|
|
7594
7589
|
|
|
@@ -7761,10 +7756,7 @@ const handleFocus = event => {
|
|
|
7761
7756
|
};
|
|
7762
7757
|
const getButtonIndex = $Node => {
|
|
7763
7758
|
let index = -1;
|
|
7764
|
-
while ($Node) {
|
|
7765
|
-
if ($Node.className !== 'SourceControlButton') {
|
|
7766
|
-
break;
|
|
7767
|
-
}
|
|
7759
|
+
while ($Node?.classList.contains('SourceControlButton')) {
|
|
7768
7760
|
$Node = $Node.previousElementSibling;
|
|
7769
7761
|
index++;
|
|
7770
7762
|
}
|
|
@@ -7775,8 +7767,9 @@ const handleClick$3 = event => {
|
|
|
7775
7767
|
target
|
|
7776
7768
|
} = event;
|
|
7777
7769
|
const uid = fromEvent(event);
|
|
7778
|
-
|
|
7779
|
-
|
|
7770
|
+
const $Button = target.closest?.('.SourceControlButton');
|
|
7771
|
+
if ($Button) {
|
|
7772
|
+
const index = getButtonIndex($Button);
|
|
7780
7773
|
handleButtonClick(uid, index);
|
|
7781
7774
|
return;
|
|
7782
7775
|
}
|