Remove text marking and PDF pagination from master (moved to testing branch)
All checks were successful
Build and push Docker image / build (push) Successful in 12s
Test / test (push) Successful in 15s

- Remove mouseup highlight selection listener
- Remove Paginated button from PDF settings panel
- Remove pagination auto-enable on book open

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
marwin 2026-03-20 20:42:03 +01:00
parent 7392bbcdcc
commit 38451514c2

View file

@ -2965,16 +2965,6 @@ async function openBook(bookId) {
// Apply reader settings (theme, font size, etc.) // Apply reader settings (theme, font size, etc.)
applyReaderSettings(isPdfBook); applyReaderSettings(isPdfBook);
// Enable PDF paginated mode if configured (auto on mobile)
if (isPdfBook && readerSettings.pdfPaginated) {
enterPdfPaginatedMode();
}
// Wire highlight selection listener for EPUB
if (!isPdfBook) {
contentEl.addEventListener('mouseup', handleReaderSelection);
}
// Swipe for PDF paginated // Swipe for PDF paginated
contentEl.addEventListener('touchstart', e => { _touchStartX = e.touches[0].clientX; }, {passive: true}); contentEl.addEventListener('touchstart', e => { _touchStartX = e.touches[0].clientX; }, {passive: true});
contentEl.addEventListener('touchend', e => { contentEl.addEventListener('touchend', e => {
@ -3387,7 +3377,6 @@ function toggleSettingsPanel() {
panel.innerHTML = ` panel.innerHTML = `
<label>Zoom <input type="range" id="rs-zoom" min="50" max="200" step="10" value="${readerSettings.pdfZoom}"> <span id="rs-zoom-val">${readerSettings.pdfZoom}%</span></label> <label>Zoom <input type="range" id="rs-zoom" min="50" max="200" step="10" value="${readerSettings.pdfZoom}"> <span id="rs-zoom-val">${readerSettings.pdfZoom}%</span></label>
<button class="btn btn-sm ${readerSettings.pdfInverted ? 'active' : ''}" id="rs-invert">Invert</button> <button class="btn btn-sm ${readerSettings.pdfInverted ? 'active' : ''}" id="rs-invert">Invert</button>
<button class="btn btn-sm ${readerSettings.pdfPaginated ? 'active' : ''}" id="rs-paginated">Paginated</button>
`; `;
} }
@ -3459,16 +3448,6 @@ function toggleSettingsPanel() {
saveReaderSettings(); saveReaderSettings();
}); });
panel.querySelector('#rs-paginated').addEventListener('click', function () {
readerSettings.pdfPaginated = !readerSettings.pdfPaginated;
this.classList.toggle('active', readerSettings.pdfPaginated);
saveReaderSettings();
if (readerSettings.pdfPaginated) {
enterPdfPaginatedMode();
} else {
exitPdfPaginatedMode();
}
});
} }
} }