Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected outline behavior #2725

Closed
4 tasks done
road2coder opened this issue Aug 3, 2023 · 1 comment
Closed
4 tasks done

Unexpected outline behavior #2725

road2coder opened this issue Aug 3, 2023 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@road2coder
Copy link

Describe the bug

When I click on an item above the currently active item in the outline, the marker first appears above the target item, and then appears in the correct place. Is this intentional?

2023-08-03.17-01-44.mp4

Reproduction

The VitePress official website exhibits the same phenomenon.

Expected behavior

The marker appears in the correct place at the first time

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 3.84 GB / 14.85 GB
  Binaries:
    Node: 16.19.1 - D:\Environment\nodejs\node.EXE
    Yarn: 1.22.19 - D:\Environment\nodejs\yarn.CMD
    npm: 8.19.3 - D:\Environment\nodejs\npm.CMD
    pnpm: 8.6.5 - D:\Environment\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.22621.1992.0), Chromium (115.0.1901.183)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vitepress: 1.0.0-beta.7 => 1.0.0-beta.7

Additional context

Changing "throttleAndDebounce" in the outline.js to a simple debounce function can solve this issue.

Validations

@road2coder road2coder added the bug: pending triage Maybe a bug, waiting for confirmation label Aug 3, 2023
@brc-dd
Copy link
Member

brc-dd commented Aug 3, 2023

Duplicate of #2665

@brc-dd brc-dd marked this as a duplicate of #2665 Aug 3, 2023
@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants