Fix #15 - Undefined error for no snapping
Merge branch 'undefined-snapping-fix' into gh-pages