[Manatoki] Bug fix

This commit is contained in:
tom5079
2021-12-21 19:05:15 +09:00
parent c34b0f6f0f
commit 8b2e388a81
4 changed files with 7 additions and 11 deletions

View File

@@ -77,12 +77,12 @@ fun OverscrollPager(
if (topCircleRadius != 0f || bottomCircleRadius != 0f)
Canvas(modifier = Modifier.fillMaxSize()) {
drawCircle(
LightBlue300.copy(alpha = 0.6f),
LightBlue300,
center = Offset(this.center.x, prevPageTurnIndicatorOffsetPx),
radius = topCircleRadius
)
drawCircle(
LightBlue300.copy(alpha = 0.6f),
LightBlue300,
center = Offset(this.center.x, this.size.height-pageTurnIndicatorHeight-nextPageTurnIndicatorOffsetPx),
radius = bottomCircleRadius
)

View File

@@ -18,6 +18,7 @@
package xyz.quaver.pupil.sources.manatoki
import android.app.Application
import android.util.Half
import android.util.LruCache
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
@@ -812,6 +813,9 @@ class Manatoki(app: Application) : Source(), DIAware {
currentPage = model.page,
prevPageAvailable = model.page > 1,
nextPageAvailable = model.page < model.maxPage,
nextPageTurnIndicatorOffset = rememberInsetsPaddingValues(
LocalWindowInsets.current.navigationBars
).calculateBottomPadding(),
onPageTurn = {
model.page = it
coroutineScope.launch {

View File

@@ -110,14 +110,6 @@ fun MangaListingBottomSheet(
) {
val coroutineScope = rememberCoroutineScope()
rippleInteractionSource.forEach {
coroutineScope.launch {
it.interactions.collect {
Log.d("PUPILD", it.toString())
}
}
}
Box(
modifier = Modifier.fillMaxWidth()
) {