Snapping: call out hover accuracy explicitly

This is a place that could be tuned for usability.
This commit is contained in:
John Beard
2024-10-04 11:01:46 +01:00
parent 6a62f1df94
commit 9060292cd0
+5 -2
View File
@@ -671,10 +671,13 @@ VECTOR2I PCB_GRID_HELPER::BestSnapAnchor( const VECTOR2I& aOrigin, const LSET& a
ADVANCED_CFG::GetCfg().m_ExtensionSnapActivateOnHover;
if( canActivateByHitTest )
{
// An exact hit on an item, even if not near
// An exact hit on an item, even if not near a snap point
// If it's tool hard to hit by hover, this can be increased
// to make it non-exact.
const int hoverAccuracy = 0;
for( BOARD_ITEM* item : visibleItems )
{
if( item->HitTest( aOrigin ) )
if( item->HitTest( aOrigin, hoverAccuracy ) )
{
proposeConstructionForItems( { item } );
snapValid = true;