mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Video editor fixes
This commit is contained in:
@@ -327,6 +327,11 @@ const CGFloat TGPhotoPaintDefaultColorLocation = 1.0f;
|
||||
{
|
||||
CGFloat colorLocation = MAX(0.0f, MIN(1.0f, self.frame.size.width > self.frame.size.height ? location.x / gestureRecognizer.view.frame.size.width : location.y / gestureRecognizer.view.frame.size.height));
|
||||
[self setLocation:colorLocation animated:true];
|
||||
|
||||
if (self.finishedPicking != nil)
|
||||
self.finishedPicking();
|
||||
|
||||
[self storeCurrentColorLocation];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user