i'm using the `HorizontalPager` from the accompan...
# compose
t
i'm using the
HorizontalPager
from the accompanist library with a content padding , but when swiping to the last item/page and do a "fast" swipe the previous items seems to disappear, this only seems to happen with a fast swipe move (maybe some overshoot swing animation?) ``````
code:
Copy code
HorizontalPager(
    count = 3,
    modifier = Modifier.fillMaxSize(),
    contentPadding = PaddingValues(horizontal = 16.dp),
    itemSpacing = 8.dp,
) { page ->
    val backgroundColor = when (page) {
        0 -> Color.Blue
        1 -> Color.Cyan
        else -> Color.Green
    }

    Box(
        modifier = Modifier
            .fillMaxSize()
            .background(backgroundColor)
    ) {
        Text("page: $page", modifier = Modifier.align(Alignment.Center))
    }
}
a
Which accompanist version? You can file a bug if it's the latest
c
Yeah. I'd file a bug. Accompanist pager still has a lot of little papercuts like this.
a