Code

fix bug which caused erroneous zoom-in after shift-middle-clicking to zoom out from...
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 13 Nov 2006 08:49:27 +0000 (08:49 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 13 Nov 2006 08:49:27 +0000 (08:49 +0000)
src/event-context.cpp

index 47447e6a0fa4263a6c10e3b09158156529a4f20d..e63df0d2f5eedff819df23361987fe696f2d5c99 100644 (file)
@@ -452,6 +452,7 @@ static gint sp_event_context_private_root_handler(SPEventContext *event_context,
         case GDK_BUTTON_RELEASE:
             if (within_tolerance && (panning || zoom_rb)) {
                 dontgrab ++;
+                zoom_rb = 0;
                 NR::Point const event_w(event->button.x, event->button.y);
                 NR::Point const event_dt(desktop->w2d(event_w));
                 double const zoom_power = ( (event->button.state & GDK_SHIFT_MASK)