react-native-rectangle-doc-scanner 3.33.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FullDocScanner.js +2 -2
- package/package.json +1 -1
- package/src/FullDocScanner.tsx +3 -4
package/dist/FullDocScanner.js
CHANGED
|
@@ -183,9 +183,9 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
|
|
|
183
183
|
if (processingCaptureRef.current) {
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
const isManualCapture = manualCapture || manualCapturePending.current || document.origin === 'manual';
|
|
187
186
|
const normalizedDoc = normalizeCapturedDocument(document);
|
|
188
|
-
|
|
187
|
+
const wantsManualFlow = manualCapture || manualCapturePending.current || document.origin === 'manual';
|
|
188
|
+
if (wantsManualFlow) {
|
|
189
189
|
manualCapturePending.current = false;
|
|
190
190
|
processingCaptureRef.current = false;
|
|
191
191
|
cropInitializedRef.current = false;
|
package/package.json
CHANGED
package/src/FullDocScanner.tsx
CHANGED
|
@@ -299,12 +299,11 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
|
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
const isManualCapture =
|
|
303
|
-
manualCapture || manualCapturePending.current || document.origin === 'manual';
|
|
304
|
-
|
|
305
302
|
const normalizedDoc = normalizeCapturedDocument(document);
|
|
303
|
+
const wantsManualFlow =
|
|
304
|
+
manualCapture || manualCapturePending.current || document.origin === 'manual';
|
|
306
305
|
|
|
307
|
-
if (
|
|
306
|
+
if (wantsManualFlow) {
|
|
308
307
|
manualCapturePending.current = false;
|
|
309
308
|
processingCaptureRef.current = false;
|
|
310
309
|
cropInitializedRef.current = false;
|