-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
browserThis issue about browser —— 跟网页端有关的问题This issue about browser —— 跟网页端有关的问题enhancementNew feature or requestNew feature or request
Description
您的建议或意见是怎样的?请描述。
Is your feature request related to a problem? Please describe.
浏览博客时,可以看到两处目录。
第一处是在文章内的,点击会直接跳转,直接跳到指定的位置

第二处是在文章右侧,点击会缓慢的移动到指定的位置,以固定的速度

描述您想要的解决方案
Describe the solution you'd like
两者的移动方式是否可以统一?尤其是第二种方式的移动,如果文章比较长的话,会要移动很久,显得很呆。
这个速度可以根据当前位置到目标位置的距离来进行计算:
- 让滚动时间不变
- 速度为路程除以时间
- 这样速度就是个变速度了,不管到多远的位置,用户都只需要等待很短的时间
然后如果路程是一个比较小的值的话,就可以不用按照上面的规则,保持一个看起来舒服的速度就好了,不然滚动会很慢
附加上下文(有截图更好)
Additional context
Metadata
Metadata
Assignees
Labels
browserThis issue about browser —— 跟网页端有关的问题This issue about browser —— 跟网页端有关的问题enhancementNew feature or requestNew feature or request