compatible with firefox when scroll to top