remove select on hover (#1330)

## Description:

Hover no longer opens submenus

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

DISCORD_USERNAME
This commit is contained in:
evanpelle
2025-07-02 20:52:18 -07:00
committed by GitHub
parent 501fb3a078
commit 165e86c962
-30
View File
@@ -381,36 +381,6 @@ export class RadialMenu implements Layer {
path.attr("filter", "url(#glow)");
path.attr("stroke-width", "3");
const color = disabled
? this.config.disabledColor
: d.data.color || "#333333";
path.attr("fill", color);
const subMenu =
this.params !== null ? d.data.subMenu?.(this.params) : null;
if (
subMenu &&
subMenu.length > 0 &&
!disabled &&
!(
this.currentLevel > 0 &&
d.data.id === this.selectedItemId &&
level === 0
)
) {
if (this.submenuHoverTimeout !== null) {
window.clearTimeout(this.submenuHoverTimeout);
}
// Set a small delay before opening submenu to prevent accidental triggers
this.submenuHoverTimeout = window.setTimeout(() => {
if (this.navigationInProgress) return;
this.navigationInProgress = true;
this.selectedItemId = d.data.id;
this.navigateToSubMenu(subMenu);
this.updateCenterButtonState("back");
}, 200);
}
};
const onMouseOut = (d: d3.PieArcDatum<MenuElement>, path: any) => {