Ensure item is gridded if there was no motion between clicks.

This commit is contained in:
Jeff Young 2023-04-18 23:42:35 +01:00
parent 2cd861dbd5
commit f7a552a2b3
1 changed files with 1 additions and 0 deletions

View File

@ -1402,6 +1402,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
{
getViewControls()->PinCursorInsideNonAutoscrollArea( true );
cursorPos = getViewControls()->GetMousePosition();
cursorPos = grid.BestSnapAnchor( cursorPos, snapLayer, item );
}
if( item )