From: tweenk Date: Sun, 26 Apr 2009 18:55:38 +0000 (+0000) Subject: Do not end path editing on double-clicks other than first mouse button X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=66443fb45014fa539218618563eb8f2da57508ff;p=inkscape.git 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. --- 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; }