Skip to content

Prevent snapping while space-panning

Duncan requested to merge vtduncan/inkscape:pan-snap into master

This patch fixes a bug where panning the window using the spacebar caused jittery motion.

To reproduce the bug:

  1. Set the snap delay preference to zero
  2. Enable snapping
  3. Pan with the spacebar

Here is a video showing the behavior and also what it looks like with this (tiny!) patch applied.

This bug doesn’t happen with middle or right-click panning because there is already logic to disable snapping during those two cases. This patch simply adds another check so that snapping is also disabled while space-panning.

Thank you so much for maintaining Inkscape!

Merge request reports