mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: buttons and actions no longer getting stuck
fix: context menu resizes if accordion is opened feat: added expanding descriptions for context actions
This commit is contained in:
@@ -1372,6 +1372,14 @@ export abstract class Unit extends CustomMarker {
|
||||
|
||||
#onRightShortClick(e: any) {
|
||||
console.log(`Right short click on ${this.getUnitName()}`);
|
||||
|
||||
window.clearTimeout(this.#rightMouseDownTimeout);
|
||||
if (
|
||||
getApp().getState() === OlympusState.UNIT_CONTROL &&
|
||||
getApp().getMap().getDefaultContextAction() &&
|
||||
getApp().getMap().getDefaultContextAction()?.getTarget() === ContextActionTarget.POINT
|
||||
)
|
||||
getApp().getMap().executeDefaultContextAction(null, this.getPosition(), e.originalEvent);
|
||||
}
|
||||
|
||||
#onRightLongClick(e: any) {
|
||||
|
||||
Reference in New Issue
Block a user