Fix grid background drawing issue that happened when scrolling was animated (e.g. when scrolling around using arrow keys).