Warp display when selecting schematic items
When selecting items where the reference point is off-screen, GTK would default the cursor to jump to the bottom of the screen. Fixes: lp:1838843 * https://bugs.launchpad.net/kicad/+bug/1838843
This commit is contained in:
parent
373ba5a904
commit
ce7833b982
|
@ -298,7 +298,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
else
|
else
|
||||||
m_anchorPos = sch_item->GetPosition();
|
m_anchorPos = sch_item->GetPosition();
|
||||||
|
|
||||||
getViewControls()->WarpCursor( *m_anchorPos );
|
getViewControls()->WarpCursor( *m_anchorPos, true, true );
|
||||||
m_cursor = *m_anchorPos;
|
m_cursor = *m_anchorPos;
|
||||||
}
|
}
|
||||||
// ...otherwise modify items with regard to the grid-snapped cursor position
|
// ...otherwise modify items with regard to the grid-snapped cursor position
|
||||||
|
|
Loading…
Reference in New Issue