diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-09-21 21:20:17 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-09-21 21:20:17 +0000 |
| commit | 1062e1a7ca8527b934d3de184d1abdf42aa1e401 (patch) | |
| tree | 8222bf084ab0605e61d405217a471489692c600f /src/event-context.cpp | |
| parent | Patch by Adib for 238796 (diff) | |
| download | inkscape-1062e1a7ca8527b934d3de184d1abdf42aa1e401.tar.gz inkscape-1062e1a7ca8527b934d3de184d1abdf42aa1e401.zip | |
fix by Diederik for 422972
(bzr r8627)
Diffstat (limited to 'src/event-context.cpp')
| -rw-r--r-- | src/event-context.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/event-context.cpp b/src/event-context.cpp index 753d0679a..958e8cb2b 100644 --- a/src/event-context.cpp +++ b/src/event-context.cpp @@ -1181,8 +1181,12 @@ void sp_event_context_snap_delay_handler(SPEventContext *ec, SPItem* const item, bool const c1 = event->state & GDK_BUTTON2_MASK; // We shouldn't hold back any events when other mouse buttons have been bool const c2 = event->state & GDK_BUTTON3_MASK; // pressed, e.g. when scrolling with the middle mouse button; if we do then // Inkscape will get stuck in an unresponsive state - - if (c1 || c2) { + bool const c3 = tools_isactive(ec->desktop, TOOLS_CALLIGRAPHIC); + // The snap delay will repeat the last motion event, which will lead to + // erroneous points in the calligraphy context. And because we don't snap + // in this context, we might just as well disable the snap delay all together + + if (c1 || c2 || c3) { // Make sure that we don't send any pending snap events to a context if we know in advance // that we're not going to snap any way (e.g. while scrolling with middle mouse button) // Any motion event might affect the state of the context, leading to unexpected behavior |
