← back to Dw Photo Capture
Fix iOS camera freeze on Look Up SKU: stop auto-clicking the BACK capture input after the front photo — iOS Safari LOCKS UP when a capture-input .click() fires from a change-event (no fresh user gesture). Now highlights the Back tile + prompts a tap; front-only Identify also enabled
ef6656d441e74fd1daeb6d299897759007786edf · 2026-07-08 15:41:15 -0700 · Steve Abrams
Files touched
Diff
commit ef6656d441e74fd1daeb6d299897759007786edf
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Jul 8 15:41:15 2026 -0700
Fix iOS camera freeze on Look Up SKU: stop auto-clicking the BACK capture input after the front photo — iOS Safari LOCKS UP when a capture-input .click() fires from a change-event (no fresh user gesture). Now highlights the Back tile + prompts a tap; front-only Identify also enabled
---
public/index.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/public/index.html b/public/index.html
index b3f194f..dc85f79 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1526,8 +1526,11 @@ async function fbRead(file,isBack){ if(!file)return;
$('#fbGo').disabled=!(_fbBack||_fbFront);
// LOOK-UP SKU flow: front first → prompt/open the BACK (label) → then auto-identify
if(_fbLookup){
- if(!isBack && !_fbBack){ $('#fbFrontTile').classList.remove('need'); $('#fbNote').innerHTML='✓ Front captured — <b>now shoot the BACK / label</b>'; $('#fbBackTile').classList.add('need');
- try{ $('#fbBackInput').click(); }catch(e){} } // auto-open back cam (falls back to the highlighted tile if iOS blocks)
+ // NOTE: do NOT programmatically re-open the native camera here — iOS Safari LOCKS UP when a
+ // capture-input .click() fires from a change-event (not a fresh user gesture). Prompt a tap instead.
+ if(!isBack && !_fbBack){ $('#fbFrontTile').classList.remove('need'); $('#fbBackTile').classList.add('need');
+ $('#fbNote').innerHTML='✓ Front captured — <b>tap “Back · label” below to shoot the label</b> (or 🔎 Identify to look up by pattern only)';
+ $('#fbGo').disabled=false; } // allow front-only identify too
else if(isBack){ $('#fbBackTile').classList.remove('need'); fbIdentify(); } // both in → look it up
}
}
← 6eb9013 FM lookup dash-agnostic + printed-code-first: wallpaper-deta
·
back to Dw Photo Capture
·
iOS photo-processing freeze fix: downscale() now uses create d5ff7da →