Help Needed Fixing a Discourse Scrolling Bug

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: Aave 14- Test eneded proposal - General - tally

1 Like

Are you using a custom Theme component or one listed in the 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