Hello,
Actually, we have added the delay before the scrolling up, script does not work fine without this delay.
Regards