Skip to content

Can you open the updateCurrentPageIndexIfNeeded function? #260

@escapeanaemia

Description

@escapeanaemia

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~!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions