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

你好,在浏览器Chromium 60.0.3112.113版本上,点击文章目录导航却不跳转,这算是bug吗? #45

Closed
nottellyou opened this issue May 2, 2024 · 11 comments

Comments

@nottellyou
Copy link

你好,在浏览器Chromium 60.0.3112.113版本上,点击文章目录导航却不跳转,这算是bug吗?

或许说,使用了新技术不支持老旧的chrome内核?

@nottellyou
Copy link
Author

在Chromium 59.0.3071.115版本上会报错,有没有方法让它不报错呢?应该是版本太老,不支持吧。

@yaohaixiao
Copy link
Owner

不好意思,才看到,能将你的报错截图展示一下吗

@nottellyou
Copy link
Author

问题1:在chrome60上不报错,就是不执行点击锚点跳转动作
问题2:在chrome59上报错:
PixPin_2024-05-16_08-49-56

@yaohaixiao
Copy link
Owner

感谢你的反馈,我会尽快修复这个问题的

@yaohaixiao
Copy link
Owner

看你的截图应该是 ES6 扩展运算符(spread)语法的问题,我 3.38.1 修复了编译后还保留扩展运算符语法的问题,你获取最新的看看问题解决没有

@nottellyou
Copy link
Author

问题1:在chrome60上不报错,就是不执行点击锚点跳转动作,是什么原因呢?
问题2:用最新版已经解决报错问题了。

@yaohaixiao
Copy link
Owner

60上还是不能跳转吗?

@nottellyou
Copy link
Author

是的,在chrome60上不报错,也不执行点击锚点跳转动作。

估计这个问题比较难查,要是报错的话,还可以追踪。

@yaohaixiao
Copy link
Owner

好的,我再看看代码,看是不是使用了浏览器不支持的 API

@nottellyou
Copy link
Author

辛苦了

@yaohaixiao
Copy link
Owner

defaults.scrollElement = 'body'
设置一下 scrollElement 参数为 body,我用旧版本的 chrome 测试了,由于我的配置模式 defaults.scrollElement = 'html,body' 老的内核不支持设置 html 元素的 scrollTop 导致的

yaohaixiao added a commit that referenced this issue Jun 20, 2024
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