Get rid of annoying flickering on scroll in certain circumstances.