@lvce-editor/renderer-process 30.64.12 → 30.64.14
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 +19 -2
- package/package.json +1 -1
|
@@ -5231,6 +5231,7 @@ forwardViewletCommand('handleListBlur');
|
|
|
5231
5231
|
forwardViewletCommand('handleListFocus');
|
|
5232
5232
|
const handleMenuClick$1 = forwardViewletCommand('handleMenuClick');
|
|
5233
5233
|
const handleMenuMouseOver$1 = forwardViewletCommand('handleMenuMouseOver');
|
|
5234
|
+
const handleMenuMouseLeave$1 = forwardViewletCommand('handleMenuMouseLeave');
|
|
5234
5235
|
const handleMouseDown$3 = forwardViewletCommand('handleMouseDown');
|
|
5235
5236
|
forwardViewletCommand('handleMouseMove');
|
|
5236
5237
|
const handleMouseOut$1 = forwardViewletCommand('handleMouseOut');
|
|
@@ -8378,9 +8379,13 @@ const handleMouseEnter = event => {
|
|
|
8378
8379
|
send$1(/* Menu.handleMouseEnter */'Menu.handleMouseEnter', /* level */level, /* index */index, /* x */clientX, /* y */clientY, /* timeStamp */timeStamp);
|
|
8379
8380
|
};
|
|
8380
8381
|
const handleMouseLeave = event => {
|
|
8382
|
+
const $Menu = event.currentTarget;
|
|
8381
8383
|
const $RelatedTarget = event.relatedTarget;
|
|
8382
|
-
if ($RelatedTarget && $
|
|
8383
|
-
|
|
8384
|
+
if ($RelatedTarget && ($Menu.contains($RelatedTarget) || $RelatedTarget.closest?.('.MenuItem'))) {
|
|
8385
|
+
return;
|
|
8386
|
+
}
|
|
8387
|
+
const level = getLevel($Menu);
|
|
8388
|
+
send$1(/* Menu.handleMouseLeave */'Menu.handleMouseLeave', /* level */level);
|
|
8384
8389
|
};
|
|
8385
8390
|
|
|
8386
8391
|
// const handleBlur = (event) => {}
|
|
@@ -8638,6 +8643,16 @@ const handleMenuMouseOver = event => {
|
|
|
8638
8643
|
const uid = fromEvent(event);
|
|
8639
8644
|
handleMenuMouseOver$1(uid, level, index);
|
|
8640
8645
|
};
|
|
8646
|
+
const handleMenuMouseLeave = event => {
|
|
8647
|
+
const {
|
|
8648
|
+
relatedTarget
|
|
8649
|
+
} = event;
|
|
8650
|
+
if (relatedTarget?.closest?.('.Menu')) {
|
|
8651
|
+
return;
|
|
8652
|
+
}
|
|
8653
|
+
const uid = fromEvent(event);
|
|
8654
|
+
handleMenuMouseLeave$1(uid);
|
|
8655
|
+
};
|
|
8641
8656
|
const handleMenuClick = event => {
|
|
8642
8657
|
const {
|
|
8643
8658
|
index,
|
|
@@ -8657,6 +8672,7 @@ const ViewletTitleBarMenuBarEvents = {
|
|
|
8657
8672
|
handleFocusIn: handleFocusIn$1,
|
|
8658
8673
|
handleFocusOut,
|
|
8659
8674
|
handleMenuClick,
|
|
8675
|
+
handleMenuMouseLeave,
|
|
8660
8676
|
handleMenuMouseOver,
|
|
8661
8677
|
handlePointerOut,
|
|
8662
8678
|
handlePointerOver
|
|
@@ -8852,6 +8868,7 @@ const addMenu = ($$Menus, change, uid) => {
|
|
|
8852
8868
|
const $Menu = create$Menu();
|
|
8853
8869
|
set$a($Menu, uid);
|
|
8854
8870
|
$Menu.onmousemove = handleMenuMouseOver;
|
|
8871
|
+
$Menu.onmouseleave = handleMenuMouseLeave;
|
|
8855
8872
|
$Menu.onclick = handleMenuClick;
|
|
8856
8873
|
const {
|
|
8857
8874
|
focusedIndex,
|