fix for glitches for animations while scrolling