Skip to content

Commit d1a532f

Browse files
Merge PR mebjas#911 from upstream
2 parents 5a1e20e + 39e1808 commit d1a532f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/html5-qrcode-scanner.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ export class Html5QrcodeScanner {
736736
if (!zoomCapability.isSupported()) {
737737
return;
738738
}
739+
if(!zoomCapability.step()){
740+
return;
741+
}
739742

740743
// Supported.
741744
cameraZoomUi.setOnCameraZoomValueChangeCallback((zoomValue) => {

0 commit comments

Comments
 (0)