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);