Lucas Prioste
01/28/2025, 3:15 PMpagerState.animateScrollToPage
. It works perfectly when moving from page 0 to page 2, with the animation functioning smoothly. However, when navigating from page 0 to page 3 or from page 3 to page 0, the animation skips intermediate pages, making it look strange and unnatural.
Here’s a video to better illustrate the issue: https://www.youtube.com/shorts/U5ZboJKc1So.
If anyone has any suggestions on how to fix this, I’d really appreciate it. Thanks!Kweku A. Mensah
01/31/2025, 10:50 AMbeyondBoundsPageCount
to the total countLucas Prioste
01/31/2025, 10:54 AManimateScrollBy
and calculated the exact scroll distance needed for each page, and now it’s working fine. 🚀