Skip to content

Commit f7939c0

Browse files
Merge pull request #3 from molpoo/fix/prevviewstate-wasnt-update-when-flipontouch-is-false
fix: onFlippedListener not called when flipOnTouch is set to false. Thank you @molpoo for your contributions 🙏🏽
2 parents 9a66d6b + 1222930 commit f7939c0

File tree

1 file changed

+1
-0
lines changed
  • flippable/src/main/java/com/wajahatkarim/flippable

1 file changed

+1
-0
lines changed

flippable/src/main/java/com/wajahatkarim/flippable/Flippable.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ fun Flippable(
122122
LaunchedEffect(key1 = flipController, block = {
123123
flipController.flipRequests
124124
.onEach {
125+
prevViewState = flippableState
125126
flippableState = it
126127
}
127128
.launchIn(this)

0 commit comments

Comments
 (0)