Warp mouse from context menu before dragging.

Fixes: lp:1798815
* https://bugs.launchpad.net/kicad/+bug/1798815
This commit is contained in:
Jeff Young 2018-11-04 00:25:45 +00:00
parent 3bfd32cdc5
commit 6e810a00e4
2 changed files with 5 additions and 0 deletions

View File

@ -148,6 +148,9 @@ bool SCH_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
// If the clarify item selection context menu is aborted, don't show the context menu. // If the clarify item selection context menu is aborted, don't show the context menu.
if( item == NULL && actionCancelled ) if( item == NULL && actionCancelled )
return false; return false;
if( item )
SetCrossHairPosition( item->GetPosition(), false );
} }
// If a command is in progress: add "cancel" and "end tool" menu // If a command is in progress: add "cancel" and "end tool" menu

View File

@ -413,6 +413,8 @@ void SCH_EDIT_FRAME::OnMoveItem( wxCommandEvent& aEvent )
return; return;
} }
GetCanvas()->GetViewControls()->WarpCursor( GetCrossHairPosition(), true );
switch( item->Type() ) switch( item->Type() )
{ {
case SCH_LINE_T: case SCH_LINE_T: