Redocly / Redocly/redoc

Scrolling not smooth

Open
#1,333 2 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Clicking on the menu items in the left pane makes the navigation jump, making it a bit jarring. Adding something like this to smooth the transition between sections breaks the scrolling:

html {
  scroll-behavior: smooth;
}

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

Reproduce the left-pane menu navigation and compare its current scrolling behavior with the proposed html scroll-behavior rule. Trace the navigation implementation and determine why smooth scrolling breaks, then verify that moving between sections is smooth without breaking scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.