7797: add snap-to-grid sample