Warp mouse from context menu before dragging.
Fixes: lp:1798815 * https://bugs.launchpad.net/kicad/+bug/1798815
This commit is contained in:
parent
3bfd32cdc5
commit
6e810a00e4
|
@ -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( item == NULL && actionCancelled )
|
||||
return false;
|
||||
|
||||
if( item )
|
||||
SetCrossHairPosition( item->GetPosition(), false );
|
||||
}
|
||||
|
||||
// If a command is in progress: add "cancel" and "end tool" menu
|
||||
|
|
|
@ -413,6 +413,8 @@ void SCH_EDIT_FRAME::OnMoveItem( wxCommandEvent& aEvent )
|
|||
return;
|
||||
}
|
||||
|
||||
GetCanvas()->GetViewControls()->WarpCursor( GetCrossHairPosition(), true );
|
||||
|
||||
switch( item->Type() )
|
||||
{
|
||||
case SCH_LINE_T:
|
||||
|
|
Loading…
Reference in New Issue