Skip to content

Commit

Permalink
Add scan delay to camera scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Mar 3, 2024
1 parent d21e7d7 commit 0e6eda8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Scanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function FromCamera({
onResult(text);
}
}}
scanDelay={500}
constraints={{
deviceId: currentCamera!,
}}
Expand Down

0 comments on commit 0e6eda8

Please sign in to comment.