summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/tool-base.cpp
diff options
context:
space:
mode:
authorDuncan <duncan@vltf.org>2017-12-08 04:15:48 +0000
committerDuncan <duncan@vltf.org>2017-12-08 04:15:48 +0000
commit177a8e85bba1eccc79f5025208b141436ab94fed (patch)
tree44fb946a5d1c21a2e72dd232550ef13d4ae10fc5 /src/ui/tools/tool-base.cpp
parentFix bug 1733422 - Bezier and pencil tool don't work form: from clipboard (diff)
downloadinkscape-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.cpp3
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