Describe the bug
When scrolling through a PDF document with lots of pages quickly, then for a little while the wrong page content is displayed.
To Reproduce
Steps to reproduce the behavior:
Add a document with plenty of pages (e.g. 50)
Scroll down towards the last page
Quickly scroll up again towards the first page
You see a wrong page content (not in expected order) for a second or so, before the correct page content loads, fitting to the current position
Expected behavior
You should either see the correct page content right away or a loading indicator, before the correct page can be shown
Screenshots
x
Smartphone (please complete the following information):
Device: Pixel 6
OS: Android 14
App Version 4.1.1
Additional context
This is most likely due to the way views are re-used in RecyclerViews. One idea to solve it is to remove the page content (the ImageView) after scrolling away and showing the loading indicator once more. Another idea could be to cache the pages so that they can be loaded quicker
Describe the bug When scrolling through a PDF document with lots of pages quickly, then for a little while the wrong page content is displayed.
To Reproduce Steps to reproduce the behavior:
Expected behavior You should either see the correct page content right away or a loading indicator, before the correct page can be shown
Screenshots x
Smartphone (please complete the following information):
Additional context This is most likely due to the way views are re-used in RecyclerViews. One idea to solve it is to remove the page content (the ImageView) after scrolling away and showing the loading indicator once more. Another idea could be to cache the pages so that they can be loaded quicker