From: buliabyak Date: Sun, 19 Aug 2007 23:48:50 +0000 (+0000) Subject: speed up node and handle dragging by gobbling unprocessed motion events X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bde6569804127155942e6e1d0a416410ec8b2c17;p=inkscape.git speed up node and handle dragging by gobbling unprocessed motion events --- diff --git a/src/knot.cpp b/src/knot.cpp index 3cc5324d4..87b5c2bb9 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -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;