Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you open the updateCurrentPageIndexIfNeeded function? #260

Open
escapeanaemia opened this issue Feb 10, 2021 · 0 comments
Open

Can you open the updateCurrentPageIndexIfNeeded function? #260

escapeanaemia opened this issue Feb 10, 2021 · 0 comments

Comments

@escapeanaemia
Copy link

escapeanaemia commented Feb 10, 2021

Hello~ thank you for developing Pageboy open source馃檪

i wanna modify the currentIndex while using the Pageboy. can you modify the updateCurrentPageIndexIfNeeded located in the internal class that it can be used in an external project? The reason for modifying the currentIndex is that when a datasource is updated as new one, the currentIndex is changed to 0, which is why scrollToPage is not being used as my intended.

for example, current tab index is 3 -> update tab -> currentIndex is changed to 0

I wanna keep currentIndex as 3. that's the reason why I wanna modify updateCurrentPageIndexIfNeeded function!

of course if you have other solutions, please let me know馃檹馃徏

thank you and have a nice day~!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant