The module does not work well with scroll-behavior: smooth;

Created on 3 May 2020, over 4 years ago
Updated 30 April 2024, 8 months ago

On my site, click on the links in the main menu to automatically scroll the page to a defined position. To click on the button go back to the top. There is a blockage then it goes up.

https://www.revolutime.com/fr

The module does not seem to work properly if scroll-behavior: smooth; is set to html.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I've encountered this same issue, and I've created a patch to work around it for the time being.

    all it does is setscrollBehavior to auto on the HTML tag when it starts scrolling and removes the scrollBehavior style when it stops or cancels scrolling

Production build 0.71.5 2024