Snap Draggable

This sample shows how to snap a draggable object to a 20x20 grid.