Fixed app bars remaining visible after changing pages by tapping in the paged reader after using the chapter navigator slider (#3567)
This commit is contained in:
@@ -15,6 +15,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
||||
- Support resumable image downloads if supported by source ([@xMohnad](https://github.com/xMohnad)) ([#3167](https://github.com/mihonapp/mihon/pull/3167))
|
||||
- Fix HTTP Error 416 not being handled properly ([@AntsyLich](https://github.com/AntsyLich)) ([#3563](https://github.com/mihonapp/mihon/pull/3563))
|
||||
|
||||
### Fixed
|
||||
- Fixed app bars remaining visible after changing pages by tapping in the paged reader after using the chapter navigator slider ([@AntsyLich](https://github.com/AntsyLich)) ([#3567](https://github.com/mihonapp/mihon/pull/3567))
|
||||
|
||||
## [v0.20.1] - 2026-07-09
|
||||
### Added
|
||||
- [Hikka](https://hikka.io/) tracker support ([@Lorg0n](https://github.com/Lorg0n)) ([#1386](https://github.com/mihonapp/mihon/pull/1386))
|
||||
|
||||
@@ -65,6 +65,7 @@ fun ReaderAppBars(
|
||||
currentPage: Int,
|
||||
totalPages: Int,
|
||||
onPageIndexChange: (Int) -> Unit,
|
||||
onPageIndexChangeFinished: () -> Unit,
|
||||
|
||||
readingMode: ReadingMode,
|
||||
onClickReadingMode: () -> Unit,
|
||||
@@ -128,6 +129,7 @@ fun ReaderAppBars(
|
||||
currentPage = currentPage,
|
||||
totalPages = totalPages,
|
||||
onPageIndexChange = onPageIndexChange,
|
||||
onPageIndexChangeFinished = onPageIndexChangeFinished,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -155,6 +157,7 @@ fun ReaderAppBars(
|
||||
currentPage = currentPage,
|
||||
totalPages = totalPages,
|
||||
onPageIndexChange = onPageIndexChange,
|
||||
onPageIndexChangeFinished = onPageIndexChangeFinished,
|
||||
)
|
||||
}
|
||||
ReaderBottomBar(
|
||||
|
||||
@@ -70,6 +70,7 @@ fun ChapterNavigator(
|
||||
currentPage: Int,
|
||||
totalPages: Int,
|
||||
onPageIndexChange: (Int) -> Unit,
|
||||
onPageIndexChangeFinished: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
val haptic = LocalHapticFeedback.current
|
||||
@@ -83,6 +84,7 @@ fun ChapterNavigator(
|
||||
}
|
||||
state.value = currentPage.toFloat()
|
||||
state.onValueChange = { onPageIndexChange(it.roundToInt() - 1) }
|
||||
state.onValueChangeFinished = onPageIndexChangeFinished
|
||||
|
||||
val interactionSource = remember { MutableInteractionSource() }
|
||||
val sliderDragged by interactionSource.collectIsDraggedAsState()
|
||||
@@ -310,6 +312,7 @@ private fun ChapterNavigatorPreview() {
|
||||
currentPage = currentPage,
|
||||
totalPages = 10,
|
||||
onPageIndexChange = { currentPage = (it + 1) },
|
||||
onPageIndexChangeFinished = {},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -505,6 +505,9 @@ class ReaderActivity : BaseActivity() {
|
||||
isScrollingThroughPages = true
|
||||
moveToPageIndex(it)
|
||||
},
|
||||
onPageIndexChangeFinished = {
|
||||
isScrollingThroughPages = false
|
||||
},
|
||||
|
||||
readingMode = ReadingMode.fromPreference(
|
||||
viewModel.getMangaReadingMode(resolveDefault = false),
|
||||
|
||||
Reference in New Issue
Block a user