diff options
| author | Duncan <duncan@vltf.org> | 2017-12-08 04:15:48 +0000 |
|---|---|---|
| committer | Duncan <duncan@vltf.org> | 2017-12-08 04:15:48 +0000 |
| commit | 177a8e85bba1eccc79f5025208b141436ab94fed (patch) | |
| tree | 44fb946a5d1c21a2e72dd232550ef13d4ae10fc5 /src/ui/tools/tool-base.cpp | |
| parent | Fix bug 1733422 - Bezier and pencil tool don't work form: from clipboard (diff) | |
| download | inkscape-177a8e85bba1eccc79f5025208b141436ab94fed.tar.gz inkscape-177a8e85bba1eccc79f5025208b141436ab94fed.zip | |
Prevent snapping while space-panning
Diffstat (limited to 'src/ui/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index 7b4f67da9..79e1cbc10 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -1289,8 +1289,9 @@ void sp_event_context_snap_delay_handler(ToolBase *ec, // 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 + bool const c4 = ec->space_panning; // Don't snap while panning with the spacebar - if (c1 || c2 || c3) { + if (c1 || c2 || c3 || c4) { // 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 |
