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 has been archived by the owner on Jul 28, 2018. It is now read-only.
Page loads incorrectly scrolled down by the same amount the user had scrolled down on Page A
After stepping through our code, it seems like the offending lines are any that change the scroll height of the page (specifically, hiding certain elements after page load) before the user has had a chance to scroll. That is, on pages that don't have any code to hide elements or change their heights on page load we don't see this bug.
Shockingly, the above steps do not result in the same bug if, between steps 4 and 5, the user scrolls any distance on Page A before clicking on another link.
I suspect this is a strange interaction between Chrome's autoscroll on load mechanic and Turbolinks. Disabling Turbolinks or trying these steps in any other browser does not result in the same bug.
Has anyone else seen something like this? Any ideas or input would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Test case:
After stepping through our code, it seems like the offending lines are any that change the scroll height of the page (specifically, hiding certain elements after page load) before the user has had a chance to scroll. That is, on pages that don't have any code to hide elements or change their heights on page load we don't see this bug.
Shockingly, the above steps do not result in the same bug if, between steps 4 and 5, the user scrolls any distance on Page A before clicking on another link.
I suspect this is a strange interaction between Chrome's autoscroll on load mechanic and Turbolinks. Disabling Turbolinks or trying these steps in any other browser does not result in the same bug.
Has anyone else seen something like this? Any ideas or input would be greatly appreciated!
The text was updated successfully, but these errors were encountered: