7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 14:20:10 +00:00

Drag footprints only in non-hover selections.

This commit is contained in:
Alex Shvartzkop 2025-01-10 21:13:59 +05:00
parent 234e4a2ae3
commit 129e37f63d

View File

@ -562,11 +562,9 @@ int EDIT_TOOL::Drag( const TOOL_EVENT& aEvent )
}
}
if( footprints.size() )
if( !sTool->GetSelection().IsHover() && footprints.size() )
{
/*
* Remove non-footprints
*/
// Remove non-footprints so box-selection will drag footprints.
for( int ii = aCollector.GetCount() - 1; ii >= 0; --ii )
{
if( aCollector[ii]->Type() != PCB_FOOTPRINT_T )