diff --git a/data/pigui/modules/flight-ui/reticule.lua b/data/pigui/modules/flight-ui/reticule.lua index 69db45b630..71308e2c30 100644 --- a/data/pigui/modules/flight-ui/reticule.lua +++ b/data/pigui/modules/flight-ui/reticule.lua @@ -322,8 +322,9 @@ local function displayDetailData(target, radius, colorLight, colorDark, tooltip, local uiPos = ui.pointOnClock(center, radius, 2.46) -- label of target local nameSize = ui.addStyledText(uiPos, ui.anchor.left, ui.anchor.baseline, target.label, colorDark, pionillium.medium, tooltip, colors.lightBlackBackground) - if ui.isMouseHoveringRect(uiPos - Vector2(0, pionillium.medium.size), uiPos + nameSize - Vector2(0, pionillium.medium.size)) and ui.isMouseClicked(1) and ui.noModifierHeld() - or bindings.targetRadial.action:IsJustActive() then + local isHovered = ui.isMouseHoveringRect(uiPos - Vector2(0, pionillium.medium.size), uiPos + nameSize - Vector2(0, pionillium.medium.size)) + and ui.isMouseClicked(1) and ui.noModifierHeld() + if isHovered or bindings.targetRadial.action:IsJustActive() then local action_binding = bindings.targetRadial.action:IsActive() and bindings.targetRadial.action ui.openDefaultRadialMenu("game", target, uiPos, action_binding) end