Skip to content

Commit 39e1808

Browse files
committed
don't show zoomcontrol if step not defined
1 parent 91a7d63 commit 39e1808

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
@@ -722,6 +722,9 @@ export class Html5QrcodeScanner {
722722
if (!zoomCapability.isSupported()) {
723723
return;
724724
}
725+
if(!zoomCapability.step()){
726+
return;
727+
}
725728

726729
// Supported.
727730
cameraZoomUi.setOnCameraZoomValueChangeCallback((zoomValue) => {

0 commit comments

Comments
 (0)