snap to grid after center viewport