From: Krzysztof KosiƄski Date: Mon, 8 Feb 2010 16:07:50 +0000 (+0100) Subject: Really fix middle click zoom in the node tool. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba8fa4e56103b428c76ae699c4a78e2f98ce2e4d;p=inkscape.git Really fix middle click zoom in the node tool. --- 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