Code

fix middle button pan and rubberband-zoom in node tool
authorbuliabyak <>
Wed, 10 Feb 2010 21:31:18 +0000 (17:31 -0400)
committerbuliabyak <>
Wed, 10 Feb 2010 21:31:18 +0000 (17:31 -0400)
src/ui/tool/node-tool.cpp

index 663504b52491a8caed818a0c77240aa4b9891b39..945fe5edd3c52564d0f949365c67660a5a44c0c4 100644 (file)
@@ -445,6 +445,8 @@ gint ink_node_tool_root_handler(SPEventContext *event_context, GdkEvent *event)
     switch (event->type)
     {
     case GDK_MOTION_NOTIFY: {
+        if (event->button.button == 1) {
+
         combine_motion_events(desktop->canvas, event->motion, 0);
         SPItem *over_item = sp_event_context_find_item (desktop, event_point(event->button),
                 FALSE, TRUE);
@@ -476,7 +478,11 @@ gint ink_node_tool_root_handler(SPEventContext *event_context, GdkEvent *event)
                 prefs->getInt("/tools/nodes/pathflash_timeout", 500));
             c->unref();
         }
-        } return true;
+
+        return true;
+        } 
+        }
+        break;
     case GDK_KEY_PRESS:
         switch (get_group0_keyval(&event->key))
         {