Reverse quickzoom up/down zooming to be out/in
This commit is contained in:
@@ -1336,7 +1336,7 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
|
||||
}
|
||||
else if (quickZoom.state == UIGestureRecognizerStateChanged)
|
||||
{
|
||||
CGFloat distance = self.quickZoomStart - [quickZoom locationInView:quickZoom.view].y;
|
||||
CGFloat distance = [quickZoom locationInView:quickZoom.view].y - self.quickZoomStart;
|
||||
|
||||
CGFloat newZoom = log2f(self.scale) + (distance / 100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user