Finish scroll animation when resizing window