From bde6569804127155942e6e1d0a416410ec8b2c17 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 19 Aug 2007 23:48:50 +0000 Subject: [PATCH] speed up node and handle dragging by gobbling unprocessed motion events --- src/knot.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2