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:
parent
34c6393b71
commit
4dd2de9057
|
@ -224,6 +224,8 @@ void LENGTH_TUNER_TOOL::performTuning()
|
|||
}
|
||||
|
||||
m_router->StopRouting();
|
||||
controls()->SetAutoPan( false );
|
||||
controls()->ForceCursorPosition( false );
|
||||
highlightNet( false );
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue