Raise limit to prevent zooming on cross-probing.

Fixes https://gitlab.com/kicad/code/kicad/issues/5149
This commit is contained in:
Jeff Young 2020-08-12 22:27:20 +01:00
parent 393bb0fd83
commit e05cd0e914
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ SCH_ITEM* SCH_EDITOR_CONTROL::FindComponentAndItem( const wxString& aReference,
fabs( bbSize.y / screenSize.y ) );
// Try not to zoom on every cross-probe; it gets very noisy
if( ratio < 0.1 || ratio > 1.0 )
if( ratio < 0.5 || ratio > 1.0 )
getView()->SetScale( getView()->GetScale() / ratio );
}
}

View File

@ -275,7 +275,7 @@ void PCB_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
fabs( bbSize.y / screenSize.y ) );
// Try not to zoom on every cross-probe; it gets very noisy
if( crossProbingSettings.zoom_to_fit && ( ratio < 0.1 || ratio > 1.0 ) )
if( crossProbingSettings.zoom_to_fit && ( ratio < 0.5 || ratio > 1.0 ) )
view->SetScale( view->GetScale() / ratio );
view->SetCenter( bbox.Centre() );