- 🇫🇮Finland Aelfendir
You should be able to work around this issue by disabling the "Smooth scrolling" setting.
If you want to retain the smooth scrolling effect, you could apply that with CSS:
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
- 🇫🇷France mably
Just released the ToC NG → module which is a fork of this module (ToC.js).
This module was developed as a proof-of-concept for our own needs. We decided to share it with the community.
There is a new option allowing to set the focus on the targeted heading after scroll: