# TOC - Autoscroll too many Headings

**URL:** <https://forum.finsweet.com/t/toc-autoscroll-too-many-headings/4204>\
**Category:** Attributes\
**Tags:** toc\
**Created:** [February 2, 2025, 11:28am UTC](https://forum.finsweet.com/t/toc-autoscroll-too-many-headings/4204 "2025-02-02T11:28:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coraline](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/coraline/32/3658_2.png) [@coraline](https://forum.finsweet.com/u/coraline)\
**Post date:** [February 2, 2025, 11:28am UTC](https://forum.finsweet.com/t/toc-autoscroll-too-many-headings/4204/1 "2025-02-02T11:28:48Z")

</div>

hi @Support-Luis @Support-Pedro and Finsweet lovers

Some of these articles are very long. The TOC works via the Finsweet TOC. attribute and works well.

Problem. Some of the articles are very long, and this enlarges the list of H2s in the summary, so the whole sidebar isn’t visible on the screen.

I have to make sure that the sidebar is visible. It’s ok if I add a max height of 80VH. But the TOC would have to scroll automatically. And then … impossible…

I tried using chatgpt to add custom code, but it breaks the design of my headings + the automatic scrolling doesn’t work.

Are there anyone who know Javascript well to help me?

Live exemple who doesnt-workd at all

> **[Assurance Solde Restant Dû : tout ce qu'il y a à savoir](https://preprod-mapension-be.webflow.io/assurance-vie/assurance-solde-restant-du)**
>
> L'Assurance Solde Restant Dû est-elle obligatoire ? Découvrez tous les détails avec Yago, le courtier à vos côtés.

---

<div class="post-metadata">

**Author:** ![coraline](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/coraline/32/3658_2.png) [@coraline](https://forum.finsweet.com/u/coraline)\
**Post date:** [February 5, 2025, 6:59am UTC](https://forum.finsweet.com/t/toc-autoscroll-too-many-headings/4204/2 "2025-02-05T06:59:15Z")

</div>

@Support-Luis hello  
do you have any solutions ?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [February 13, 2025, 5:55pm UTC](https://forum.finsweet.com/t/toc-autoscroll-too-many-headings/4204/3 "2025-02-13T17:55:39Z")

</div>

Hello @coraline! Apologies for the delay.

If you are still experiencing the issue could you please record a quick Loom showcasing it?
