Checking if seciton is valid
This commit is contained in:
parent
7a88d2d08c
commit
2162f52e00
1 changed files with 1 additions and 0 deletions
|
|
@ -259,6 +259,7 @@
|
|||
let section = document.querySelector(link.hash);
|
||||
|
||||
if (
|
||||
section &&
|
||||
section.offsetTop <= fromTop &&
|
||||
section.offsetTop + section.offsetHeight > fromTop
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue