fixed scrolling in overview
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,3 +8,4 @@ deleted/b
|
|||||||
deleted/ca
|
deleted/ca
|
||||||
deleted/t
|
deleted/t
|
||||||
tmp/*
|
tmp/*
|
||||||
|
tools
|
||||||
@@ -187,13 +187,12 @@ window.requestAnimFrame = (function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const changePage = (e, pbwork = true) => {
|
const changePage = (e, pbwork = true) => {
|
||||||
if (e.tagName === 'A') {
|
if (pbwork) {
|
||||||
e.preventDefault();
|
const nav = document.querySelector("nav.navbar");
|
||||||
loadItemAjax(e.href);
|
if (nav) nav.classList.add("pbwork");
|
||||||
} else {
|
|
||||||
pbwork && document.querySelector("nav.navbar").classList.add("pbwork");
|
|
||||||
!tt && (tt = setTimeout(() => e.click(), stimeout));
|
|
||||||
}
|
}
|
||||||
|
// Trigger native click for navigation
|
||||||
|
e.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Intercept clicks
|
// Intercept clicks
|
||||||
|
|||||||
Reference in New Issue
Block a user