From 33dbca1bc9314b078d927effa5cd175c1dd16ee6 Mon Sep 17 00:00:00 2001 From: Stanislav Khromov Date: Mon, 30 Jun 2025 01:41:25 +0200 Subject: [PATCH] Remove navigation inversion for tap actions Tap actions for page and chapter navigation no longer respect the 'Invert navigation controls' setting. The setting summary was updated to clarify it only affects volume button and hardware key navigation. --- .../koitharu/kotatsu/reader/ui/ReaderControlDelegate.kt | 8 ++++---- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderControlDelegate.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderControlDelegate.kt index 657b82e54..6fe17f12e 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderControlDelegate.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderControlDelegate.kt @@ -95,10 +95,10 @@ class ReaderControlDelegate( private fun processAction(action: TapAction) { when (action) { - TapAction.PAGE_NEXT -> listener.switchPageBy(if (settings.isReaderNavigationInverted) -1 else 1) - TapAction.PAGE_PREV -> listener.switchPageBy(if (settings.isReaderNavigationInverted) 1 else -1) - TapAction.CHAPTER_NEXT -> listener.switchChapterBy(if (settings.isReaderNavigationInverted) -1 else 1) - TapAction.CHAPTER_PREV -> listener.switchChapterBy(if (settings.isReaderNavigationInverted) 1 else -1) + TapAction.PAGE_NEXT -> listener.switchPageBy(1) + TapAction.PAGE_PREV -> listener.switchPageBy(-1) + TapAction.CHAPTER_NEXT -> listener.switchChapterBy(1) + TapAction.CHAPTER_PREV -> listener.switchChapterBy(-1) TapAction.TOGGLE_UI -> listener.toggleUiVisibility() TapAction.SHOW_MENU -> listener.openMenu() } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 47e1ea0d0..3b1dcbcda 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -566,7 +566,7 @@ Enable volume buttons Use volume buttons for switching pages Invert navigation controls - Swap the direction of volume button and screen tap navigation (left becomes right, right becomes left) + Swap the direction of volume button and hardware key navigation (left becomes right, right becomes left) Tap action Long tap action None