Modified the grid offsets in order to keep the screen centered when zooming in.
Modified the grid offsets in order to keep the screen centered when zooming out.