You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
fix($anchorScroll): make sure scrolling takes place when readyState === 'complete'
When navigating to a page with a hash in the URL, Firefox and IE do their
native scrolling AFTER $anchorScroll, which cancels the applied `yOffset`.
Waiting for `document.readyState` to be 'complete' solves the problem in
Firefox.
(In IE, the issue still appears when navigating to a URL (with a hash),
but not when reloading the same URL.)
Note, that with or without this fix subsequent calls to `$anchorScroll()`
or changes to `$location.hash()` work as expected in all supported
browsers.
0 commit comments