mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various Improvements
This commit is contained in:
@@ -1414,7 +1414,7 @@ const CGFloat TGPhotoPaintStickerKeyboardSize = 260.0f;
|
||||
|
||||
- (CGFloat)_brushWeightForSize:(CGFloat)size
|
||||
{
|
||||
return [self _brushBaseWeightForCurrentPainting] + [self _brushWeightRangeForCurrentPainting] * size;
|
||||
return ([self _brushBaseWeightForCurrentPainting] + [self _brushWeightRangeForCurrentPainting] * size) / _scrollView.zoomScale;
|
||||
}
|
||||
|
||||
+ (CGSize)maximumPaintingSize
|
||||
@@ -1739,6 +1739,9 @@ const CGFloat TGPhotoPaintStickerKeyboardSize = 260.0f;
|
||||
{
|
||||
[self adjustZoom];
|
||||
|
||||
TGPaintSwatch *currentSwatch = _portraitSettingsView.swatch;
|
||||
[_canvasView setBrushWeight:[self _brushWeightForSize:currentSwatch.brushWeight]];
|
||||
|
||||
if (_scrollView.zoomScale < _scrollView.normalZoomScale - FLT_EPSILON)
|
||||
{
|
||||
[TGHacks setAnimationDurationFactor:0.5f];
|
||||
|
||||
Reference in New Issue
Block a user