summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e1998e)
raw | patch | inline | side by side (parent: 6e1998e)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 23 Aug 2007 22:27:38 +0000 (22:27 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 23 Aug 2007 22:27:38 +0000 (22:27 +0000) |
src/event-context.cpp | patch | blob | history |
diff --git a/src/event-context.cpp b/src/event-context.cpp
index c6192c4c3b72dec1d3ce641d77b09f3cdc3d083f..7e14d5a492f4106dcdc7f2c97dd37a8487883b23 100644 (file)
--- a/src/event-context.cpp
+++ b/src/event-context.cpp
static gdouble accelerate_scroll(GdkEvent *event, gdouble acceleration, SPCanvas *canvas)
{
guint32 time_diff = ((GdkEventKey *) event)->time - scroll_event_time;
- glong slowest_buffer = canvas->slowest_buffer / 1000; // the buffer time is in usec, but event time is in msec
-
- // reduce time interval by the time it took to paint slowest buffer,
- // so that acceleration does not hiccup on complex slow-rendering drawings
- if ((guint32) slowest_buffer <= time_diff)
- time_diff -= slowest_buffer;
- else
- time_diff = 0;
/* key pressed within 500ms ? (1/2 second) */
if (time_diff > 500 || event->key.keyval != scroll_keyval) {
@@ -440,6 +432,8 @@ static gint sp_event_context_private_root_handler(SPEventContext *event_context,
} else {
Inkscape::Rubberband::get()->start(desktop, motion_dt);
}
+ if (zoom_rb == 2)
+ gobble_motion_events(GDK_BUTTON2_MASK);
}
break;
case GDK_BUTTON_RELEASE: