7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-07 17:25:33 +00:00

Position interactive: don't allow status popup over the dialog

This commit is contained in:
John Beard 2025-01-16 20:42:13 +08:00
parent 040fe379d0
commit e392b7b52d

View File

@ -299,6 +299,9 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
// second click or mouse up after drag ends
else if( originSet && ( evt->IsClick( BUT_LEFT ) || evt->IsMouseUp( BUT_LEFT ) ) )
{
// Hide the popup text so it doesn't get in the way
statusPopup.Hide();
// This is the forward vector from the ruler item
const VECTOR2I origVector = twoPtMgr.GetEnd() - twoPtMgr.GetOrigin();
VECTOR2I offsetVector = origVector;
@ -325,6 +328,8 @@ int POSITION_RELATIVE_TOOL::PositionRelativeInteractively( const TOOL_EVENT& aEv
controls.SetAutoPan( false );
controls.CaptureCursor( false );
statusPopup.Popup();
}
// move or drag when origin set updates rules
else if( originSet && ( evt->IsMotion() || evt->IsDrag( BUT_LEFT ) ) )