Code

speed up node and handle dragging by gobbling unprocessed motion events
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 19 Aug 2007 23:48:50 +0000 (23:48 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 19 Aug 2007 23:48:50 +0000 (23:48 +0000)
src/knot.cpp

index 3cc5324d4315f90342e068747f55aaccc1bf12d3..87b5c2bb908a5b58a4ab6563ba96517d2dadb815 100644 (file)
@@ -380,6 +380,8 @@ static int sp_knot_handler(SPCanvasItem *item, GdkEvent *event, SPKnot *knot)
                 sp_knot_request_position (knot, &p, event->motion.state);
                 knot->desktop->scroll_to_point (&motion_dt);
                 knot->desktop->set_coordinate_status(knot->pos); // display the coordinate of knot, not cursor - they may be different!
+                if (event->motion.state & GDK_BUTTON1_MASK)
+                    gobble_motion_events(GDK_BUTTON1_MASK);
                 moved = TRUE;
             }
             break;