code to fix the lack of snapping to line on mouse brush movement
Merge pull request #14 from MichaelHilton/fixSnappingBug

code to fix the lack of snapping to line on mouse brush movement