Warp display when selecting schematic items

When selecting items where the reference point is off-screen, GTK
would default the cursor to jump to the bottom of the screen.

Fixes: lp:1838843
* https://bugs.launchpad.net/kicad/+bug/1838843
This commit is contained in:
Ian McInerney 2019-08-04 03:02:15 +02:00 committed by Jeff Young
parent 373ba5a904
commit ce7833b982
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
else
m_anchorPos = sch_item->GetPosition();
getViewControls()->WarpCursor( *m_anchorPos );
getViewControls()->WarpCursor( *m_anchorPos, true, true );
m_cursor = *m_anchorPos;
}
// ...otherwise modify items with regard to the grid-snapped cursor position