Skip to content

Commit

Permalink
Revert "Fixed the issue of 'HorizontalPager' slow scrolling and 'onPa…
Browse files Browse the repository at this point in the history
…geSelected' not being called."
  • Loading branch information
arkivanov committed Dec 18, 2023
1 parent 5d54157 commit c7470aa
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 c7470aa

Please sign in to comment.