From 66443fb45014fa539218618563eb8f2da57508ff Mon Sep 17 00:00:00 2001 From: tweenk Date: Sun, 26 Apr 2009 18:55:38 +0000 Subject: [PATCH] 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. --- src/pen-context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2