From ead1914b1d7ba4152241baec4e661fe24970bbce Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 31 May 2019 18:45:43 +0100 Subject: [PATCH] Don't autopan until mouse moves. --- eeschema/tools/sch_move_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index c29ae15aca..5582bc8dee 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -157,7 +157,6 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent ) Activate(); controls->ShowCursor( true ); - controls->SetAutoPan( true ); bool restore_state = false; bool chain_commands = false; @@ -424,6 +423,8 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent ) break; // Finish } + controls->SetAutoPan( m_moveInProgress ); + } while( ( evt = Wait() ) ); //Should be assignment not equality test controls->ForceCursorPosition( false );