mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 08:26:11 +00:00
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 <max.dohme@gmail.com>
This commit is contained in:
@@ -138,6 +138,7 @@ export class RadialMenu implements Layer {
|
||||
.style("touch-action", "none")
|
||||
.on("contextmenu", (e) => {
|
||||
e.preventDefault();
|
||||
this.hideRadialMenu();
|
||||
});
|
||||
|
||||
const svg = this.menuElement
|
||||
|
||||
Reference in New Issue
Block a user