From 38451514c26f236c9d6a502bdb22931c081b5496 Mon Sep 17 00:00:00 2001 From: marwin Date: Fri, 20 Mar 2026 20:42:03 +0100 Subject: [PATCH] Remove text marking and PDF pagination from master (moved to testing branch) - 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 --- static/js/app.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 5b1eb5d..7b27abe 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2965,16 +2965,6 @@ async function openBook(bookId) { // Apply reader settings (theme, font size, etc.) 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 contentEl.addEventListener('touchstart', e => { _touchStartX = e.touches[0].clientX; }, {passive: true}); contentEl.addEventListener('touchend', e => { @@ -3387,7 +3377,6 @@ function toggleSettingsPanel() { panel.innerHTML = ` - `; } @@ -3459,16 +3448,6 @@ function toggleSettingsPanel() { 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(); - } - }); } }