summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a52452d)
raw | patch | inline | side by side (parent: a52452d)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Thu, 2 Apr 2009 19:35:48 +0000 (19:35 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Thu, 2 Apr 2009 19:35:48 +0000 (19:35 +0000) |
src/desktop-events.cpp | patch | blob | history |
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index 47b97e3bc7fb5901a10ac2b8e45d00602aabda7f..3d8e88fba7ea1c3422bfac0d51c7808732fb4d6a 100644 (file)
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
}
sp_event_context_snap_window_open(desktop->event_context);
- double tol = 40.0;
+ double tol = 40.0; // Measured in screenpixels
Geom::Point const event_w(event->button.x, event->button.y);
Geom::Point const event_dt(desktop->w2d(event_w));
// https://bugs.launchpad.net/inkscape/+bug/333762
drag_origin = Geom::projection(event_dt, Geom::Line(guide->point_on_line, guide->angle()));
- if (Geom::L2(guide->point_on_line - event_dt) < tol) {
+ if (Geom::L2(guide->point_on_line - event_dt) < tol/desktop->current_zoom()) {
// the click was on the guide 'anchor'
drag_type = (event->button.state & GDK_SHIFT_MASK) ? SP_DRAG_MOVE_ORIGIN : SP_DRAG_TRANSLATE;
} else {