Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -286,7 +286,7 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega | @@ -286,7 +286,7 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega | ||
| 286 | actualScale = min(maxZoomFactor, actualScale) | 286 | actualScale = min(maxZoomFactor, actualScale) |
| 287 | 287 | ||
| 288 | // Limit to 1.0 scale | 288 | // Limit to 1.0 scale |
| 289 | - device.ramp(toVideoZoomFactor: actualScale, withRate: 5) | 289 | + device.videoZoomFactor = actualScale |
| 290 | device.unlockForConfiguration() | 290 | device.unlockForConfiguration() |
| 291 | } catch { | 291 | } catch { |
| 292 | throw MobileScannerError.zoomError(error) | 292 | throw MobileScannerError.zoomError(error) |
-
Please register or login to post a comment