editor: Fix snapping.