-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working in safari/edge if you want to scroll document.body #292
Comments
Yeah that's because in those browsers the body is the scrolling element. You can verify this by checking If you use the native |
Thanks for clearing that up, did not know that. In the end i fixed it by adding an invisible anchor element at the beginning of the body. I just tested in safari and there using the native element scrolls to the beginning of the body as intended. I could not test on edge as i only have the new chrome based edge on hand currently |
Yeah it caught me off guard as well. I discovered it while working on Browserstack tests. I plan on implementing |
It seems to work in both firefox and chrome for us if we want to scroll to the start of the body for example. But both in edge and safari the frames array is always empty if we use document.body as a target
The text was updated successfully, but these errors were encountered: