capacitor-plugin-camera-forked 3.0.13 → 3.0.33
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.
|
@@ -449,7 +449,7 @@ public class CameraPreviewPlugin extends Plugin {
|
|
|
449
449
|
|
|
450
450
|
@PluginMethod
|
|
451
451
|
public void setZoom(PluginCall call) {
|
|
452
|
-
if (call.hasOption("factor")) {
|
|
452
|
+
if (call.hasOption("factor") && camera != null) {
|
|
453
453
|
Float factor = call.getFloat("factor");
|
|
454
454
|
try {
|
|
455
455
|
camera.getCameraControl().setZoomRatio(factor);
|
package/package.json
CHANGED