Remove default smooth scrolling

This was only better when the adminbar would mess up everything. Otherwise, it is just annoying
This commit is contained in:
Tetrakern 2023-08-27 18:38:01 +02:00
parent f23cbdf206
commit 80cc407fc5

View File

@ -1934,13 +1934,6 @@ fcn_theBody.addEventListener('click', event => {
}
});
// Enable smooth scrolling if there is an anchor
document.addEventListener('DOMContentLoaded', () => {
if (window.location.hash) {
fcn_theRoot.style.scrollBehavior = 'smooth';
}
});
// =============================================================================
// MARK CURRENTLY ACTIVE MENU ITEM
// =============================================================================