From 574bfdbe7a4918dc54885058095425a6f9c8f2ea Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Tue, 10 Feb 2026 21:54:58 -0700 Subject: [PATCH] fix(reader): disable tap-to-turn-page on mobile devices --- .../app/features/readers/ebook-reader/core/event.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/booklore-ui/src/app/features/readers/ebook-reader/core/event.service.ts b/booklore-ui/src/app/features/readers/ebook-reader/core/event.service.ts index 69ddfa938..8f74d2e38 100644 --- a/booklore-ui/src/app/features/readers/ebook-reader/core/event.service.ts +++ b/booklore-ui/src/app/features/readers/ebook-reader/core/event.service.ts @@ -451,11 +451,13 @@ export class ReaderEventService { const leftThreshold = width * this.LEFT_ZONE_PERCENT; const rightThreshold = width * this.RIGHT_ZONE_PERCENT; - if (x < leftThreshold) { + const isMobile = 'ontouchstart' in window || navigator.maxTouchPoints > 0; + + if (x < leftThreshold && !isMobile) { this.isNavigating = true; this.viewCallbacks?.prev(); setTimeout(() => this.isNavigating = false, 300); - } else if (x > rightThreshold) { + } else if (x > rightThreshold && !isMobile) { this.isNavigating = true; this.viewCallbacks?.next(); setTimeout(() => this.isNavigating = false, 300);