fix lost of scroll animation when an item is changing page