diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2009-04-26 18:55:38 +0000 |
|---|---|---|
| committer | tweenk <tweenk@users.sourceforge.net> | 2009-04-26 18:55:38 +0000 |
| commit | 0776e26f34d57fc36d92457707693a84e34c971f (patch) | |
| tree | 10e28faa74a92022bf271ada17a80cae2fb052d5 /src/pen-context.cpp | |
| parent | Add Tango icon set from Jesusda. (diff) | |
| download | inkscape-0776e26f34d57fc36d92457707693a84e34c971f.tar.gz inkscape-0776e26f34d57fc36d92457707693a84e34c971f.zip | |
Do not end path editing on double-clicks other than first mouse button
in the pen tool. Fixes horizontal scrolling with tilt wheels while
drawing a path.
(bzr r7776)
Diffstat (limited to 'src/pen-context.cpp')
| -rw-r--r-- | src/pen-context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp index beece2b31..61b7a0eb8 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -852,7 +852,8 @@ static gint 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; } |
