From 1ed3d50eb1cfad6640c9a5e1a862bab949bcfa21 Mon Sep 17 00:00:00 2001 From: Max Dohme Date: Wed, 16 Apr 2025 03:28:22 +0200 Subject: [PATCH] Add right-click on radial menu to close (#509) ## Description: UX Improvement - Add right-click on radial menu to close it, instead of having to click outside the menu. Fixes #520 ## Please complete the following: - [x] I have added screenshots for all UI updates - [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: eyeseeem Co-authored-by: Max Dohme --- src/client/graphics/layers/RadialMenu.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/graphics/layers/RadialMenu.ts b/src/client/graphics/layers/RadialMenu.ts index 1fe1e0c6d..75cd9c198 100644 --- a/src/client/graphics/layers/RadialMenu.ts +++ b/src/client/graphics/layers/RadialMenu.ts @@ -138,6 +138,7 @@ export class RadialMenu implements Layer { .style("touch-action", "none") .on("contextmenu", (e) => { e.preventDefault(); + this.hideRadialMenu(); }); const svg = this.menuElement