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))
|
- 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))
|
- 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
|
## [v0.20.1] - 2026-07-09
|
||||||
### Added
|
### Added
|
||||||
- [Hikka](https://hikka.io/) tracker support ([@Lorg0n](https://github.com/Lorg0n)) ([#1386](https://github.com/mihonapp/mihon/pull/1386))
|
- [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,
|
currentPage: Int,
|
||||||
totalPages: Int,
|
totalPages: Int,
|
||||||
onPageIndexChange: (Int) -> Unit,
|
onPageIndexChange: (Int) -> Unit,
|
||||||
|
onPageIndexChangeFinished: () -> Unit,
|
||||||
|
|
||||||
readingMode: ReadingMode,
|
readingMode: ReadingMode,
|
||||||
onClickReadingMode: () -> Unit,
|
onClickReadingMode: () -> Unit,
|
||||||
@@ -128,6 +129,7 @@ fun ReaderAppBars(
|
|||||||
currentPage = currentPage,
|
currentPage = currentPage,
|
||||||
totalPages = totalPages,
|
totalPages = totalPages,
|
||||||
onPageIndexChange = onPageIndexChange,
|
onPageIndexChange = onPageIndexChange,
|
||||||
|
onPageIndexChangeFinished = onPageIndexChangeFinished,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -155,6 +157,7 @@ fun ReaderAppBars(
|
|||||||
currentPage = currentPage,
|
currentPage = currentPage,
|
||||||
totalPages = totalPages,
|
totalPages = totalPages,
|
||||||
onPageIndexChange = onPageIndexChange,
|
onPageIndexChange = onPageIndexChange,
|
||||||
|
onPageIndexChangeFinished = onPageIndexChangeFinished,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
ReaderBottomBar(
|
ReaderBottomBar(
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ fun ChapterNavigator(
|
|||||||
currentPage: Int,
|
currentPage: Int,
|
||||||
totalPages: Int,
|
totalPages: Int,
|
||||||
onPageIndexChange: (Int) -> Unit,
|
onPageIndexChange: (Int) -> Unit,
|
||||||
|
onPageIndexChangeFinished: () -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
val haptic = LocalHapticFeedback.current
|
val haptic = LocalHapticFeedback.current
|
||||||
@@ -83,6 +84,7 @@ fun ChapterNavigator(
|
|||||||
}
|
}
|
||||||
state.value = currentPage.toFloat()
|
state.value = currentPage.toFloat()
|
||||||
state.onValueChange = { onPageIndexChange(it.roundToInt() - 1) }
|
state.onValueChange = { onPageIndexChange(it.roundToInt() - 1) }
|
||||||
|
state.onValueChangeFinished = onPageIndexChangeFinished
|
||||||
|
|
||||||
val interactionSource = remember { MutableInteractionSource() }
|
val interactionSource = remember { MutableInteractionSource() }
|
||||||
val sliderDragged by interactionSource.collectIsDraggedAsState()
|
val sliderDragged by interactionSource.collectIsDraggedAsState()
|
||||||
@@ -310,6 +312,7 @@ private fun ChapterNavigatorPreview() {
|
|||||||
currentPage = currentPage,
|
currentPage = currentPage,
|
||||||
totalPages = 10,
|
totalPages = 10,
|
||||||
onPageIndexChange = { currentPage = (it + 1) },
|
onPageIndexChange = { currentPage = (it + 1) },
|
||||||
|
onPageIndexChangeFinished = {},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -505,6 +505,9 @@ class ReaderActivity : BaseActivity() {
|
|||||||
isScrollingThroughPages = true
|
isScrollingThroughPages = true
|
||||||
moveToPageIndex(it)
|
moveToPageIndex(it)
|
||||||
},
|
},
|
||||||
|
onPageIndexChangeFinished = {
|
||||||
|
isScrollingThroughPages = false
|
||||||
|
},
|
||||||
|
|
||||||
readingMode = ReadingMode.fromPreference(
|
readingMode = ReadingMode.fromPreference(
|
||||||
viewModel.getMangaReadingMode(resolveDefault = false),
|
viewModel.getMangaReadingMode(resolveDefault = false),
|
||||||
|
|||||||
Reference in New Issue
Block a user