Skip to content

Commit bd58519

Browse files
committed
Fix slider
1 parent 9db90c6 commit bd58519

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

submodules/LegacyComponents/Sources/TGPhotoEditorSliderView.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,11 @@ - (void)setValue:(CGFloat)value
381381

382382
- (void)setValue:(CGFloat)value animated:(BOOL)__unused animated
383383
{
384-
_value = MIN(MAX(_lowerBoundValue, MAX(value, _minimumValue)), _maximumValue);
384+
if (_lowerBoundValue > FLT_EPSILON) {
385+
_value = MIN(MAX(_lowerBoundValue, MAX(value, _minimumValue)), _maximumValue);
386+
} else {
387+
_value = MIN(MAX(value, _minimumValue), _maximumValue);
388+
}
385389
[self setNeedsLayout];
386390
}
387391

0 commit comments

Comments
 (0)