@lvce-editor/renderer-process 30.46.1 → 30.46.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.
@@ -8991,7 +8991,7 @@ const addMenu = ($$Menus, change, uid) => {
8991
8991
  const dom = change[2];
8992
8992
  const $Menu = create$Menu();
8993
8993
  set$8($Menu, uid);
8994
- $Menu.onmouseover = handleMenuMouseOver;
8994
+ $Menu.onmousemove = handleMenuMouseOver;
8995
8995
  $Menu.onclick = handleMenuClick;
8996
8996
  const {
8997
8997
  focusedIndex,
@@ -9035,7 +9035,8 @@ const updateMenu = ($$Menus, change) => {
9035
9035
  const $Menu = $$Menus[level];
9036
9036
  setBounds$a($Menu, x, y, width, height);
9037
9037
  renderInto($Menu, dom);
9038
- if (level === newLength - 1) {
9038
+ const isOpeningSubMenu = $$Menus.length < newLength;
9039
+ if (level === newLength - 1 || isOpeningSubMenu) {
9039
9040
  if (focusedIndex === -1) {
9040
9041
  $Menu.focus();
9041
9042
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.46.1",
3
+ "version": "30.46.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"