Skip to content

Default theme's smooth scrolling feature not working #1930

Closed
@wallslide

Description

@wallslide
  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

Here is the link to the repository with the issue --> https://github.com/appsocially/upil-site
The corresponding vuepress site is at https://upil.org/

I added the smoothScroll option to config.js here as is detailed in the docs.

What is expected?

Clicking links on the sidebar that point to the current page should smoothly scroll the page to that section.

What is actually happening?

The page jumps to intra-page anchors instead of smoothly scrolling to them.

Other relevant information

  • Output of npx vuepress info in my VuePress project:
System:
    OS: macOS 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm
  Browsers:
    Chrome: 77.0.3865.90
    Firefox: Not Found
    Safari: 13.0.2
  npmPackages:
    @vuepress/core:  1.1.0 
    @vuepress/theme-default:  1.1.0 
    vuepress: ^1.1.0 => 1.1.0 
  npmGlobalPackages:
    vuepress: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions