Various fixes

This commit is contained in:
Ilya Laktyushin
2023-07-05 17:26:20 +02:00
parent a480df3ed6
commit 6301b2ba64
5 changed files with 15 additions and 11 deletions

View File

@@ -749,10 +749,10 @@ final class CaptureControlsComponent: Component {
blobOffset -= self.frame.width / 2.0
var isBanding = false
if location.y < -10.0 {
let fraction = 1.0 + min(8.0, ((abs(location.y) - 10.0) / 60.0))
let fraction = min(8.0, ((abs(location.y) - 10.0) / 60.0))
component.zoomUpdated(fraction)
} else {
component.zoomUpdated(1.0)
component.zoomUpdated(0.0)
}
if location.x < self.frame.width / 2.0 - 30.0 {