Help Needed Fixing a Discourse Scrolling Bug

AI-generated summary

In a Marketplace category thread titled “Help Needed Fixing a Discourse Scrolling Bug,” David_Len reports a scrolling issue after adding a theme component widget that appears in the sidebar (desktop) or top of posts (mobile). The bug interferes with Discourse’s ‘jump to last read’ feature — the page scrolls correctly at first, then jumps back to the top due to a layout shift or partial reload triggered by the widget. David shared a video demonstration and a live test link. Heliosurge asks for more details — including whether the component is custom or from the #theme-component category, Discourse version, and console errors — noting that widget spu may be deprecated in favor of Glimmer components. Heliosurge also requests a screenshot of console errors, as viewing the video on mobile is difficult. Moin asks whether David_Len used plugin outlets to place the widget. The issue appears tied to widget behavior affecting scroll positioning after page load.

Hi, I’m experiencing a scrolling bug after adding a widget via a Discourse theme component and could use some help fixing it. Paid.

1 Like

Hi David, can you provide additional details. Like What component you added when this bug was noticed. Discourse version and build info.

It will give ppl a better idea if what you need help with as a scrolling bug is a bit vague.
.it is possible too that someone might have an easy fix by suggesting an alternative component.

You can also use your browser’s Dev tools to see if there are errors in the console.

4 Likes

Hi Dan, thanks for the reply.

I’m using a theme component to display a widget that appears in the sidebar on desktops and at the top of the post on mobile.

The issue is that it seems to interfere with Discourse’s ‘jump to last read’ feature. When a user opens a topic they’ve read before, the page initially scrolls to the correct position, but then the widget seems to trigger a layout shift or a partial reload. This ‘glitch’ forces the page back to the top, losing the user’s place.

I’ve attached a video to show exactly how the jump occurs. I’m using the latest version of Discourse
Video:https://drive.google.com/file/d/1PjIkhRQPf4HFMDYDQ6oj3jsxgx0D8Zxr/view?usp=sharing

Live link: https://mytestsitetally.discourse.group/t/aave-14-test-eneded-proposal/27

1 Like

Are you using a custom Customization > Theme component or one listed in the Customization > Theme component category?

If Custom and you are using the widget spu, iirc that has been deprecated with changes in discourse. I am not sure myself as I am still learning but think it is now maybe done with a glimmer component?

I am in mobile. Can you post a screenshot of the console error(s) as hard for me to zoom in on the video

1 Like

Do you use plugin outlets to place the widget?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.