bug fix & adjustable snap range
Merge pull request #1506 from raymix/master

bug fix & adjustable snap range