Redocly / Redocly/redoc

Sidebar scrolling broke if scrollBehavior=smooth

Open
#2,587 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

When scrollBehavior is set to smooth it breaks the sidebar scrolling.

For now I have used

document.documentElement.style.scrollBehavior = '';

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the sidebar scrolling issue with scrollBehavior set to smooth, then trace the sidebar scrolling entry point in the TypeScript frontend. Verify the behavior with and without the workaround shown in the issue; done means sidebar scrolling works normally without changing document.documentElement.style.scrollBehavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.