fixed the page jumpping issue when scroll event is firstly triggered