ThreatDemosSlider always passed autoPlay to ThreatCinematic, so the Mobile SDK page's embedded demo — including its speech-synthesis narration — started 450ms after the page loaded rather than waiting for a visitor to tap the phone. Autoplay is now standalone-only (/threat-demos); the embedded instance stays idle until tapped. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,7 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
exit={{ x: dir > 0 ? '-100%' : '100%' }}
|
||||
transition={{ type: 'spring', stiffness: 260, damping: 30 }}
|
||||
style={{ position: 'absolute', inset: 0 }}>
|
||||
<ThreatCinematic scenario={scenario} autoPlay chrome={false} />
|
||||
<ThreatCinematic scenario={scenario} autoPlay={!embedded} chrome={false} />
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user