summaryrefslogtreecommitdiffstats
path: root/src/spiral-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spiral-context.cpp')
-rw-r--r--src/spiral-context.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp
index d751fae6d..f8a4bddfb 100644
--- a/src/spiral-context.cpp
+++ b/src/spiral-context.cpp
@@ -277,6 +277,13 @@ sp_spiral_context_root_handler(SPEventContext *event_context, GdkEvent *event)
gobble_motion_events(GDK_BUTTON1_MASK);
ret = TRUE;
+ } else if (sp_event_context_knot_mouseover(sc)) {
+ SnapManager &m = desktop->namedview->snap_manager;
+ m.setup(desktop);
+
+ Geom::Point const motion_w(event->motion.x, event->motion.y);
+ Geom::Point motion_dt(desktop->w2d(motion_w));
+ m.preSnap(Inkscape::SnapCandidatePoint(motion_dt, Inkscape::SNAPSOURCE_NODE_HANDLE));
}
break;
case GDK_BUTTON_RELEASE: