From 8bce70a563d9626c39d9ce9deaedf98daa49cd0f Mon Sep 17 00:00:00 2001 From: Alex Sherstnev Date: Wed, 7 Jan 2026 21:04:53 +0100 Subject: [PATCH] map controls gesture fix --- Rewind/View/MapControls.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Rewind/View/MapControls.swift b/Rewind/View/MapControls.swift index c29f75b..d84bd39 100644 --- a/Rewind/View/MapControls.swift +++ b/Rewind/View/MapControls.swift @@ -28,6 +28,7 @@ struct MapControls: View { } .padding(.horizontal, 25) .padding(.bottom, 2) + .offset(y: offset) MapControlsGlassContainer( hasBottomSafeAreaInset: hasBottomSafeAreaInset, @@ -36,6 +37,7 @@ struct MapControls: View { content } .overlay(alignment: .top) { cardToPull } + .offset(y: offset) .minimizable( contentHeight: glassCardHeight, state: appStore.binding( @@ -44,15 +46,14 @@ struct MapControls: View { offset: $offset, glimpseHeight: 100, pullingProgress: $pullingProgress, - minPullLength: 200, + minPullLength: 300, onPull: { appStore(.imageList(.presentCurrentRegionImages( source: RootView.TransitionSource.pullUpCard))) } ) } - .offset(y: offset) .animation( - .interactiveSpring(duration: 0.4, extraBounce: 0.1, blendDuration: 0.5), + .interactiveSpring(duration: 0.3, extraBounce: 0.1, blendDuration: 1), value: offset ) }