Use full page navigation for double-tap chapter switching
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

This commit is contained in:
Admin
2026-03-01 23:12:55 +05:00
parent 398a4703eb
commit 13a3eacca6

View File

@@ -2576,12 +2576,7 @@ const chapterTmpl = `
var INTERACTIVE = ['A', 'BUTTON', 'INPUT', 'SELECT', 'TEXTAREA', 'LABEL'];
function navigate(url) {
var mc = document.getElementById('main-content');
if (mc && window.htmx) {
htmx.ajax('GET', url, { target: '#main-content', swap: 'innerHTML', pushUrl: url });
} else {
window.location.href = url;
}
window.location.href = url;
}
document.addEventListener('touchend', function (e) {