Make TwoClickPlace cursor handling match SingleClickPlace.
This commit is contained in:
parent
efae25e24e
commit
9eb2113a50
|
@ -939,8 +939,9 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
|
||||||
grid.SetSnap( !evt->Modifier( MD_SHIFT ) );
|
grid.SetSnap( !evt->Modifier( MD_SHIFT ) );
|
||||||
grid.SetUseGrid( getView()->GetGAL()->GetGridSnapping() && !evt->Modifier( MD_ALT ) );
|
grid.SetUseGrid( getView()->GetGAL()->GetGridSnapping() && !evt->Modifier( MD_ALT ) );
|
||||||
|
|
||||||
VECTOR2I cursorPos = grid.BestSnapAnchor( controls->GetCursorPosition( false ), snapLayer,
|
VECTOR2I cursorPos = evt->IsPrime() ? evt->Position() : controls->GetMousePosition();
|
||||||
item );
|
cursorPos = grid.BestSnapAnchor( cursorPos, snapLayer, item );
|
||||||
|
controls->ForceCursorPosition( true, cursorPos );
|
||||||
|
|
||||||
auto cleanup =
|
auto cleanup =
|
||||||
[&] ()
|
[&] ()
|
||||||
|
|
Loading…
Reference in New Issue