snap to grid added to swipeline option
Correction when snap is zero
Merge pull request #15 from SergioCrisostomo/snapToGrid

Snap to grid - fixes #11