e.preventDefault();
element.classList.add('nopointer')
.nopointer a {
pointer-events: 'none'
}
if (scrollTop >= scrollThreshold) {
element.style.opacity = '0';
element.classList.add("nopointer");
} else if (element.classList.contains("nopointer")) {
element.classList.remove("nopointer");
}