Hi, I’m experiencing a scrolling bug after adding a widget via a Discourse theme component and could use some help fixing it. Paid.
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.
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
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
Do you use plugin outlets to place the widget?