summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f6f350)
raw | patch | inline | side by side (parent: 3f6f350)
author | tweenk <tweenk@users.sourceforge.net> | |
Sun, 26 Apr 2009 18:55:38 +0000 (18:55 +0000) | ||
committer | tweenk <tweenk@users.sourceforge.net> | |
Sun, 26 Apr 2009 18:55:38 +0000 (18:55 +0000) |
in the pen tool. Fixes horizontal scrolling with tilt wheels while
drawing a path.
drawing a path.
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index beece2b31f44f70b896ae07ae0c582b76efef467..61b7a0eb82be66a1119a22a73d1fdc41e0edf948 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
pen_handle_2button_press(SPPenContext *const pc, GdkEventButton const &bevent)
{
gint ret = FALSE;
- if (pc->npoints != 0 && bevent.button != 2) {
+ // only end on LMB double click. Otherwise horizontal scrolling causes ending of the path
+ if (pc->npoints != 0 && bevent.button == 1) {
spdc_pen_finish(pc, FALSE);
ret = TRUE;
}