Skip to content

Commit

Permalink
Merge pull request #578 from arkivanov/revert-576-fix-issue
Browse files Browse the repository at this point in the history
Revert "Fixed the issue of 'HorizontalPager' slow scrolling and 'onPageSelected' not being called."
  • Loading branch information
arkivanov committed Dec 18, 2023
2 parents 5d54157 + c7470aa commit 2dc8817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fun <C : Any, T : Any> Pages(
}
}

DisposableEffect(state.currentPage, state.targetPage) {
DisposableEffect(state.currentPage) {
if (state.currentPage == state.targetPage) {
onPageSelected(state.currentPage)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fun <C : Any, T : Any> Pages(
}
}

DisposableEffect(state.currentPage, state.targetPage) {
DisposableEffect(state.currentPage) {
if (state.currentPage == state.targetPage) {
onPageSelected(state.currentPage)
}
Expand Down

0 comments on commit 2dc8817

Please sign in to comment.