We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a2249 commit 59db045Copy full SHA for 59db045
src/misc/scanner.js
@@ -34,12 +34,10 @@ export function keepScanning (camera, options) {
34
let locationBefore = null
35
let lastScanned = performance.now()
36
37
- const processFrame = () => {
+ const processFrame = timeNow => {
38
if (shouldContinue()) {
39
window.requestAnimationFrame(processFrame)
40
41
- const timeNow = performance.now()
42
-
43
if (timeNow - lastScanned >= minDelay) {
44
lastScanned = timeNow
45
0 commit comments