mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 09:28:42 +01:00
chore: rememberCallback for swipe gesture begin
This commit is contained in:
parent
64307b5526
commit
d7e7317635
@ -316,7 +316,7 @@ class PostListScreen : Screen {
|
||||
DismissValue.Default -> Color.Transparent
|
||||
}
|
||||
},
|
||||
onGestureBegin = {
|
||||
onGestureBegin = rememberCallback(model) {
|
||||
model.reduce(PostListMviModel.Intent.HapticIndication)
|
||||
},
|
||||
onDismissToStart = rememberCallback(model) {
|
||||
|
@ -333,7 +333,7 @@ class ExploreScreen : Screen {
|
||||
DismissValue.Default -> Color.Transparent
|
||||
}
|
||||
},
|
||||
onGestureBegin = {
|
||||
onGestureBegin = rememberCallback(model) {
|
||||
model.reduce(ExploreMviModel.Intent.HapticIndication)
|
||||
},
|
||||
onDismissToStart = rememberCallback(model) {
|
||||
|
@ -261,7 +261,7 @@ class MultiCommunityScreen(
|
||||
DismissValue.Default -> Color.Transparent
|
||||
}
|
||||
},
|
||||
onGestureBegin = {
|
||||
onGestureBegin = rememberCallback(model) {
|
||||
model.reduce(MultiCommunityMviModel.Intent.HapticIndication)
|
||||
},
|
||||
onDismissToStart = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user