Align cursor to the grid when dragging multiple items (GAL).

This commit is contained in:
Maciej Suminski 2015-07-28 10:28:59 +02:00
parent fb8afc61ab
commit 6983f90b9f
1 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,10 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
m_cursor = grid.BestDragOrigin( originalCursorPos, item );
grid.SetAuxAxes( true, m_cursor );
}
else
{
m_cursor = grid.Align( m_cursor );
}
controls->ForceCursorPosition( true, m_cursor );
controls->WarpCursor( m_cursor, true );