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;
}