summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp3
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;
}