<polymon-qr-code-scanner> in the ideal case doesn't require any click to scan the QR code, as the user just needs to point the camera. Unfortunately this doesn't work on sadfari, so we use an <input> there. Also, the scanner doesn't support features like tap to focus.
Instead of <polymon-qr-code-scanner>, we could use <input type="file" capture="camera" accept="image/*">. Once the input changes, we could trigger the QR code scanning & handle the success/error.
<polymon-qr-code-scanner>
in the ideal case doesn't require any click to scan the QR code, as the user just needs to point the camera. Unfortunately this doesn't work on sadfari, so we use an<input>
there. Also, the scanner doesn't support features like tap to focus.Instead of
<polymon-qr-code-scanner>
, we could use<input type="file" capture="camera" accept="image/*">
. Once the input changes, we could trigger the QR code scanning & handle the success/error.@cdata WDYT?