Make scrollsToTop work on all devices.