mirror of https://github.com/KLayout/klayout.git
Improve snapping in partial mode when snapping to objects
This commit is contained in:
parent
dc9b3bb398
commit
84c4f31a9c
|
|
@ -1811,7 +1811,7 @@ PartialService::mouse_move_event (const db::DPoint &p, unsigned int buttons, boo
|
|||
if (snap_details.object_snap == lay::PointSnapToObjectResult::NoObject) {
|
||||
m_current = m_start + snap_move (p - m_start);
|
||||
} else {
|
||||
m_current = snap_details.snapped_point;
|
||||
m_current = m_start + snap_move (snap_details.snapped_point - m_start);
|
||||
mouse_cursor_from_snap_details (snap_details);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue