capacitor-plugin-camera-forked 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,7 +115,7 @@ public class CameraPreviewPlugin: CAPPlugin, AVCaptureVideoDataOutputSampleBuffe
|
|
|
115
115
|
let previewHeight = screenWidth * aspectRatio // Calculate height
|
|
116
116
|
|
|
117
117
|
let screenHeight = previewView.bounds.height
|
|
118
|
-
let previewY = (screenHeight - previewHeight) * 0.
|
|
118
|
+
let previewY = (screenHeight - previewHeight) * 0.5 // Center vertically
|
|
119
119
|
|
|
120
120
|
self.previewView.frame = CGRect(x: 0, y: previewY, width: screenWidth, height: previewHeight)
|
|
121
121
|
}
|
package/package.json
CHANGED