pcbnew: Prevent mouse capture after actions

After an action is completed that required the screen to pan when the
cursor reaches the edge of the screen, we should release the cursor to
allow the user to move their mouse without panning.

Fixes: lp:1763860
* https://bugs.launchpad.net/kicad/+bug/1763860
This commit is contained in:
Seth Hillbrand 2018-06-12 21:11:21 -07:00
parent 34c6393b71
commit 4dd2de9057
2 changed files with 4 additions and 0 deletions

View File

@ -224,6 +224,8 @@ void LENGTH_TUNER_TOOL::performTuning()
}
m_router->StopRouting();
controls()->SetAutoPan( false );
controls()->ForceCursorPosition( false );
highlightNet( false );
}

View File

@ -1128,6 +1128,8 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
if( m_router->RoutingInProgress() )
m_router->StopRouting();
controls()->SetAutoPan( false );
controls()->ForceCursorPosition( false );
frame()->UndoRedoBlock( false );
return 0;