Code

Do not end path editing on double-clicks other than first mouse button
[inkscape.git] / src / pen-context.cpp
index beece2b31f44f70b896ae07ae0c582b76efef467..61b7a0eb82be66a1119a22a73d1fdc41e0edf948 100644 (file)
@@ -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;
     }