From a882b84ba077ee2ed7665923445ab969da8b023e Mon Sep 17 00:00:00 2001 From: Alexander Zhirkevich Date: Wed, 22 Nov 2023 14:26:29 +0300 Subject: [PATCH] Fix swipeEdges recompositions --- .../compose/jetbrains/PredictiveBackGestureOverlay.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions-compose-jetbrains/src/nonAndroidMain/kotlin/com/arkivanov/decompose/extensions/compose/jetbrains/PredictiveBackGestureOverlay.kt b/extensions-compose-jetbrains/src/nonAndroidMain/kotlin/com/arkivanov/decompose/extensions/compose/jetbrains/PredictiveBackGestureOverlay.kt index 73c9f1855..357d3840f 100644 --- a/extensions-compose-jetbrains/src/nonAndroidMain/kotlin/com/arkivanov/decompose/extensions/compose/jetbrains/PredictiveBackGestureOverlay.kt +++ b/extensions-compose-jetbrains/src/nonAndroidMain/kotlin/com/arkivanov/decompose/extensions/compose/jetbrains/PredictiveBackGestureOverlay.kt @@ -99,7 +99,7 @@ private fun Modifier.handleBackGestures( onIconMoved: (position: Offset, progress: Float, BackGestureHandler.Edge) -> Unit, onIconHidden: () -> Unit, ): Modifier = - pointerInput(backDispatcher) { + pointerInput(backDispatcher, swipeEdges) { awaitEachGesture { onIconHidden()