Quick answer: Construct 3 game's touch events not registering when embedded in an iframe? Mobile browsers require touch-action: manipulation on the iframe - add the style and remove default panning.

Game works on itch.io standalone. Embedded as iframe on a portal site, touches scroll the page instead of reaching the game.

Set touch-action

<iframe style="touch-action: manipulation">

Disables browser-default pan/zoom on touch. The game's listeners receive the events.

Prevent default in the parent

Parent page's body should not call preventDefault() globally - it can block touchstart from reaching the iframe.

Test on real device

Chrome DevTools touch simulation doesn't replicate iframe boundaries perfectly. Use a real phone before declaring it fixed.

“iframe embedding has touch quirks. The embedder, not the game, owns the fix.”

Document the iframe attributes your game needs. Portal operators copy-paste; they don't read the small print.