From 71d964e01bb0f0380d678907984e53517d0bbbc2 Mon Sep 17 00:00:00 2001 From: denlvovich Date: Wed, 25 Feb 2026 01:54:09 +0300 Subject: [PATCH] Slider animation duration fix commit_hash:5549fcb7c36a8c7116d975fd23cdc5b878c64c67 --- client/ios/LayoutKit/LayoutKit/Blocks/Slider/SliderView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ios/LayoutKit/LayoutKit/Blocks/Slider/SliderView.swift b/client/ios/LayoutKit/LayoutKit/Blocks/Slider/SliderView.swift index 3607fa151..75d95dd94 100644 --- a/client/ios/LayoutKit/LayoutKit/Blocks/Slider/SliderView.swift +++ b/client/ios/LayoutKit/LayoutKit/Blocks/Slider/SliderView.swift @@ -303,9 +303,9 @@ final class SliderView: BlockView, VisibleBoundsTrackingLeaf { to newValue: Double, from oldValue: Double ) { - let normalizedDelta = abs(newValue - oldValue) / Double(max(1, sliderModel.valueRange)) + let animationDuration = animationDuration * 2 * abs(newValue - oldValue) / sliderModel.stepSize thumbAnimator = .runningPropertyAnimator( - withDuration: animationDuration * 2 * normalizedDelta, + withDuration: animationDuration, delay: 0, options: [.allowUserInteraction, .curveEaseIn], animations: { [self] in