Camera and media editor improvements

This commit is contained in:
Ilya Laktyushin
2023-05-10 17:10:27 +04:00
parent c114f218b9
commit d15c48ff07
104 changed files with 9805 additions and 676 deletions

View File

@@ -396,7 +396,9 @@ const CGFloat TGPhotoEditorSliderViewInternalMargin = 7.0f;
if (_minimumValue < 0)
{
CGFloat knob = knobSize;
if ((NSInteger)value == 0)
if (fabs(_minimumValue) > 1.0 && (NSInteger)value == 0) {
return totalLength / 2;
} else if (fabs(value) < 0.01)
{
return totalLength / 2;
}