I'm trying to jump to a specific item in paging3. I'm using Room as local PagingSource (documentation says that it already handles the getRefreshKey) and i'm using it inside a ViewPager2. When i set the currentItem the view pager tries to jump to it, but it stops at the last item of the current page. Is there currently a way to jump to an item outside the current page?
Edit:
The code is in the commit "Refactored to orbit" in the branch "mvi-refactoring" in this project https://gitlab.com/sedestrian/pokedex/-/tree/feature/mvi-refactoring.
There are 2 pages, a list and a detail in the modules "pokemonlist" and "pokemondetails" respectively. The list is a paging3 list. It has some issues (like sometimes paging doesn't recognize that it shoud load more items) but it mostly works correctly, the problem is in the details page. At the top i have a viewpager2 with the same items of the list, also paged with paging3.
The goal is to click on a pokemon in the list and go to the same pokemon in the details.
The data is loaded from the network and cached in room, the code that ties them together is in the module "pokemon" in the class "PokemonRepositoryImpl".
I've tried wrapping room datasource like in the comments but i'm not sure how to do such a thing, my attempts either didn't build or didn't load any data.