medium 回顶按钮微调

This commit is contained in:
tangly1024.com
2023-02-09 16:34:32 +08:00
parent 2aefbfb58d
commit ca26dae20f
3 changed files with 4 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ const Catalog = ({ toc }) => {
const throttleMs = 100
const actionSectionScrollSpy = React.useCallback(throttle(() => {
console.log('滚动')
const sections = document.getElementsByClassName('notion-h')
let prevBBox = null
let currentSectionId = activeSection