From ba8fa4e56103b428c76ae699c4a78e2f98ce2e4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Mon, 8 Feb 2010 17:07:50 +0100 Subject: [PATCH] Really fix middle click zoom in the node tool. --- src/ui/tool/selector.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/tool/selector.cpp b/src/ui/tool/selector.cpp index 8d3cf5650..a30f96025 100644 --- a/src/ui/tool/selector.cpp +++ b/src/ui/tool/selector.cpp @@ -108,12 +108,14 @@ bool Selector::event(GdkEvent *event) case GDK_BUTTON_PRESS: // Do not pass button presses other than left button to the control point. // This way middle click and right click can be handled in SPEventContext. - if (event->button.button != 1) return false; - _dragger->setPosition(_desktop->w2d(event_point(event->motion))); + if (event->button.button == 1) { + _dragger->setPosition(_desktop->w2d(event_point(event->motion))); + return _dragger->event(event); + } break; default: break; } - return _dragger->event(event); + return false; } } // namespace UI -- 2.30.2