Video editor fixes

This commit is contained in:
Ilya Laktyushin
2020-05-28 16:58:53 +03:00
parent 0f71886e24
commit 4778f56a24
2 changed files with 14 additions and 1 deletions

View File

@@ -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];
}
}