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.
This commit is contained in:
Stanislav Khromov
2025-06-30 01:41:25 +02:00
committed by Koitharu
parent 40778a88dd
commit 33dbca1bc9
2 changed files with 5 additions and 5 deletions

View File

@@ -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()
}

View File

@@ -566,7 +566,7 @@
<string name="switch_pages_volume_buttons">Enable volume buttons</string>
<string name="switch_pages_volume_buttons_summary">Use volume buttons for switching pages</string>
<string name="reader_navigation_inverted">Invert navigation controls</string>
<string name="reader_navigation_inverted_summary">Swap the direction of volume button and screen tap navigation (left becomes right, right becomes left)</string>
<string name="reader_navigation_inverted_summary">Swap the direction of volume button and hardware key navigation (left becomes right, right becomes left)</string>
<string name="tap_action">Tap action</string>
<string name="long_tap_action">Long tap action</string>
<string name="none">None</string>