Here is the source repo: https://github.com/Elringus/NaninovelWeb
UPDATE: I've fixed the issue in the repo with https://github.com/Elringus/NaninovelWeb/commit/7148c303e26dc7fc8d9fa6a89820778608a9b268
Page scrolling to the specified anchor.
Page not scrolling to the specified anchor.
Not reproducing with Firefox and Edge browsers.
Not reproducing when smooth scrolling is enabled.
npx vuepress info in my VuePress project:Environment Info:
System:
OS: Windows 10 10.0.18363
CPU: (16) x64 Intel(R) Core(TM) i7-6900K CPU @ 3.20GHz
Binaries:
Node: 10.15.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.15.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
npmPackages:
@vuepress/core: 1.5.2
@vuepress/theme-default: 1.5.2
vuepress: 1.5.2 => 1.5.2
npmGlobalPackages:
vuepress: Not Found
Chrome (it's not displayed in the environment info for some reason): Version 84.0.4147.105 (Official Build) (64-bit)
Not reproducing with Firefox and Edge browsers.
Not reproducing when smooth scrolling is enabled.
Doesn't work on Safari too, even with smoothScroll set to true.
scrollBehavior() function is not invoked at all when opening a page for the first time.I'm trying to fix the issue, but I have zero knowledge about vuepress, so it's problematic to even figure where to start looking for. Would really appreciate any advice.
Following fixes the issue: https://github.com/Elringus/NaninovelWeb/commit/7148c303e26dc7fc8d9fa6a89820778608a9b268
Most helpful comment
Following fixes the issue: https://github.com/Elringus/NaninovelWeb/commit/7148c303e26dc7fc8d9fa6a89820778608a9b268