Checking if seciton is valid
This commit is contained in:
@@ -259,6 +259,7 @@
|
|||||||
let section = document.querySelector(link.hash);
|
let section = document.querySelector(link.hash);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
section &&
|
||||||
section.offsetTop <= fromTop &&
|
section.offsetTop <= fromTop &&
|
||||||
section.offsetTop + section.offsetHeight > fromTop
|
section.offsetTop + section.offsetHeight > fromTop
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user