Skip to content

Scrolling animation can get stuck into infinite loop #10666

@pv

Description

@pv

Describe the bug
When a TOC item in sidebar is clicked, the view scrolls to the position. If another TOC item is clicked while the page is scrolling, the page starts gets into an infinite loop where it scrolls between the two positions.

Expected behavior
Scrolling animation should not get stuck in an infinite loop.

Screenshots
doxy.webm

To Reproduce

  1. Open https://doxygen.nl/manual/install.html#install_src_unix
  2. In left sidebar, click "Installing the binaries on UNIX"
  3. Then rapidly click "Installing from source on UNIX" during the page scrolling animation
  4. The page starts to scroll back and forth between the two anchors positions. Only page reload stops the loop.

This can be triggered with also other TOC items, as long as they trigger scrolling on the same page.

Version
Appears on Doxygen 1.9.7 and 1.11.0, and probably other versions too.

Browsers: Firefox/122.0.1/Linux; chromium/111.0.5563.64/Linux; Firefox/Android; occurs on all of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTMLHTML / XHTML outputbug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions