From ece189d586b1a8bbf510b15cad5d2c5e39e7c749 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Thu, 26 Feb 2026 23:07:14 +0300 Subject: [PATCH] Clean up Signed-off-by: denis0001-dev --- .../ru/fromchat/ui/chat/ImageFullscreenPreview.kt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/shared/src/commonMain/kotlin/ru/fromchat/ui/chat/ImageFullscreenPreview.kt b/app/shared/src/commonMain/kotlin/ru/fromchat/ui/chat/ImageFullscreenPreview.kt index c2e0210..0a9ea42 100644 --- a/app/shared/src/commonMain/kotlin/ru/fromchat/ui/chat/ImageFullscreenPreview.kt +++ b/app/shared/src/commonMain/kotlin/ru/fromchat/ui/chat/ImageFullscreenPreview.kt @@ -223,10 +223,6 @@ fun ImageFullscreenPreview( val cornerRadiusAnim = remember { Animatable(initial.cornerRadius) } val density = LocalDensity.current val bottomInsetPx = WindowInsets.safeDrawing.getBottom(density) - val backGestureEdgeWidthPx: Float? = WindowInsets.safeDrawing - .getLeft(density, androidx.compose.ui.unit.LayoutDirection.Ltr) - .toFloat() - .takeIf { it > 0f } var isTransformInProgress by remember { mutableStateOf(false) } var gestureEndJob by remember { mutableStateOf(null) } val scope = rememberCoroutineScope() @@ -435,7 +431,7 @@ fun ImageFullscreenPreview( if (isTransitioning) Modifier else Modifier.pointerInput( containerWidth, containerHeight, contentHeightAtScale1, - bottomInsetPx, scope, backGestureEdgeWidthPx + bottomInsetPx, scope ) { detectTransformGestures( panZoomLock = true, @@ -457,15 +453,6 @@ fun ImageFullscreenPreview( val centerX = containerWidth / 2f val centerY = containerHeight / 2f - // If this looks like a system back swipe from the left edge, ignore it - if (zoomChange == 1f && backGestureEdgeWidthPx != null) { - val absDx = abs(panChange.x) - val absDy = abs(panChange.y) - if (absDx > absDy && centroid.x < backGestureEdgeWidthPx) { - return@detectTransformGestures - } - } - if (zoomChange != 1f) { isDragToDismiss = false dismissProgress = 0f