Fix flickering toolbar bug when scrolling slowly