kybarg / react-qr-scanner

React component for reading QR codes using PC web camera or mobile phone camera.
MIT License
126 stars 40 forks source link

"delay" property not honored in alpha-0.8 #51

Open jackhamby opened 2 years ago

jackhamby commented 2 years ago

delay number passed does not actually delay the scanning

working example https://github.com/jackhamby/react-qr-scanner-delay-issue

to run: npm install npm run start

delay is set at 1000ms on each scan we console.log("scanning") open dev tools and see we console log scanning much more often than we should. confirmed the delay still works in version 0.0.11