In a support thread titled “Timeline scroll unpredictable in topics with images,” wishspinner reports erratic timeline scrolling behavior in Chrome when navigating long topics with many images — dragging or clicking internal links (e.g., to post #64 in a 100+ post topic) often lands users at incorrect positions or jumps them back to the top. pfaffman asks for a public example and suggests testing with default settings or disabling plugins/themes. wishspinner confirms the issue occurs with internal links and can’t share public links but offers a screencast privately. pfaffman compares the issue to a known Discourse test topic and recommends disabling themes/plugins. wishspinner confirms the issue stems from their custom theme. Finally, wishspinner identifies the root cause: a theme component applying scroll-behavior: smooth to the body element, which interferes with accurate scroll positioning in image-heavy threads.
I’ve recently migrated a lot of threads into Discourse on my dev server from VB4, and in long topics with a lot of images the timeline scrollbar is all over the place. Trying to drag from post #11 to post #50 could get you to #36, it could get you to #6, it could throw you back to the top, and the bigger jump you try to make the more the issue seems to be exaggerated.
This is only happening in Chrome.
I can live with hiding the timeline if at least I can get the internal links working - but linking to a specific post within a topic presents the same issue. Does anyone have ideas on a workaround?
Hi @pfaffman, yes that’s correct. A link to Login | HSTS Redirection Community where the topic has 100+ posts will cause the behavior in Chrome. These are topics with a lot of images. Have you encountered anything like this before?
Unfortunately, I may be able to share a screencast in a pm or email but I’m sure I’m not permitted to share direct links to the project publicly.
I located the problem. For future reference, the issue was being caused by a theme component with the scroll-behavior:smooth css property applied to the body element.