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

侧边栏过长无法精准跳转到靠下的小标题 #309

Open
wjsw3369 opened this issue Aug 8, 2023 · 5 comments
Open

侧边栏过长无法精准跳转到靠下的小标题 #309

wjsw3369 opened this issue Aug 8, 2023 · 5 comments

Comments

@wjsw3369
Copy link

wjsw3369 commented Aug 8, 2023

侧边导航栏的长度到达可以滚动的长度时,如果跳转一个超出屏幕或者在屏幕边缘的一个小标题时会卡到中间不再往下或往上到相应位置,如果使用新标签页直接访问某个小标题,如果初始就在屏幕外也会跳转不到位,卡到中间

@wjsw3369
Copy link
Author

把主题配置文件的smooth_scroll改成false可以关闭滑动,但还是希望开启可用,

最简单的说以官方文档也是关闭的,如果开启预计也能复刻此情况

侧边栏过长无法精准跳转到靠下的小标题,hexo-theme-stellar1.20.0还是

@wjsw3369 wjsw3369 changed the title 侧边栏过长时无法跳转至对应位置 侧边栏过长无法精准跳转到靠下的小标题 Dec 15, 2023
@xaoxuu
Copy link
Owner

xaoxuu commented Dec 21, 2023

这是个已知问题,我不知道该怎么低成本解决,所以默认就是关闭平滑滚动的。

@wjsw3369
Copy link
Author

wjsw3369 commented Dec 21, 2023

这是个已知问题,我不知道该怎么低成本解决,所以默认就是关闭平滑滚动的。

默认好像是打开的
https://github.com/xaoxuu/hexo-theme-stellar/blob/main/_config.yml#L413

新版已默认关闭

@wjsw3369
Copy link
Author

或者有办法针对某个页面开启吗

@xaoxuu
Copy link
Owner

xaoxuu commented Dec 22, 2023

那可能是我记错了。
一个网站各个页面体验最好保持一致,实在喜欢可以搜索一下,有用别的方式实现平滑滚动的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants