Fix more accidental event capturing.

Fixes https://gitlab.com/kicad/code/kicad/issues/5844
This commit is contained in:
Jeff Young 2020-12-06 13:31:08 +00:00
parent 16c92f4134
commit 2260597236
1 changed files with 4 additions and 0 deletions

View File

@ -230,6 +230,10 @@ void PCB_TOOL_BASE::doInteractiveItemPlacement( const std::string& aTool,
aPlacer->SnapItem( newItem.get() ); aPlacer->SnapItem( newItem.get() );
view()->Update( &preview ); view()->Update( &preview );
} }
else
{
evt->SetPassEvent();
}
} }
else if( newItem && evt->IsMotion() ) else if( newItem && evt->IsMotion() )
{ {