Implemented transform snapping.