Skip to content

Commit

Permalink
fix: 滚动定位修复
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing committed Apr 21, 2023
1 parent c5ebf8b commit ca92f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/doc/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Docs = function Docs({
const rect = section.getBoundingClientRect()
if (
rect.top >= 0 &&
rect.bottom - rect.height <= window.innerHeight * 0.5
rect.bottom - rect.height <= window.innerHeight * 0.2
) {
navActive = i
}
Expand Down

0 comments on commit ca92f9b

Please # to comment.