From e5e5bc1eacee495cbd01ba9307b874222eb46f0d Mon Sep 17 00:00:00 2001 From: Ali <> Date: Sat, 1 Jul 2023 12:44:31 +0200 Subject: [PATCH] Fix next --- .../StoryContainerScreen/Sources/StoryContainerScreen.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContainerScreen.swift b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContainerScreen.swift index cc8bbba9df..614d798eef 100644 --- a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContainerScreen.swift +++ b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryContainerScreen.swift @@ -331,7 +331,7 @@ private final class StoryContainerScreenComponent: Component { direction = .previous } else if itemSetPanState.fraction >= 0.3 { direction = .next - } else if abs(velocity.x) > 100.0 { + } else if abs(velocity.x) >= 100.0 { if velocity.x < 0.0 { if stateValue.nextSlice != nil { direction = .next @@ -863,7 +863,7 @@ private final class StoryContainerScreenComponent: Component { } else { self.beginHorizontalPan(translation: CGPoint()) self.updateHorizontalPan(translation: CGPoint()) - self.commitHorizontalPan(velocity: CGPoint(x: -100.0, y: 0.0)) + self.commitHorizontalPan(velocity: CGPoint(x: -200.0, y: 0.0)) } } else if case .previous = direction, slice.previousItemId == nil { if stateValue.previousSlice == nil { @@ -875,7 +875,7 @@ private final class StoryContainerScreenComponent: Component { } else { self.beginHorizontalPan(translation: CGPoint()) self.updateHorizontalPan(translation: CGPoint()) - self.commitHorizontalPan(velocity: CGPoint(x: 100.0, y: 0.0)) + self.commitHorizontalPan(velocity: CGPoint(x: 200.0, y: 0.0)) } } else { let mappedDirection: StoryContentContextNavigation.ItemDirection