From 4dd2de9057330d7cf3fa971f4ef482fa43f036d9 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 12 Jun 2018 21:11:21 -0700 Subject: [PATCH] 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 --- pcbnew/router/length_tuner_tool.cpp | 2 ++ pcbnew/router/router_tool.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pcbnew/router/length_tuner_tool.cpp b/pcbnew/router/length_tuner_tool.cpp index 5aceba2554..6e4b446d14 100644 --- a/pcbnew/router/length_tuner_tool.cpp +++ b/pcbnew/router/length_tuner_tool.cpp @@ -224,6 +224,8 @@ void LENGTH_TUNER_TOOL::performTuning() } m_router->StopRouting(); + controls()->SetAutoPan( false ); + controls()->ForceCursorPosition( false ); highlightNet( false ); } diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 0c375e3b20..561dd3d0eb 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -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;