davidfig / pixi-viewport

A highly configurable viewport/2D camera designed to work with pixi.js
https://davidfig.github.io/pixi-viewport/
MIT License
1.04k stars 173 forks source link

Pinch not working correctly in iframe #491

Open AnnaVeller opened 2 months ago

AnnaVeller commented 2 months ago

My game with pixi-viewport works fine on a simple pixi game. But when I embed the game in an iframe, the pinch no longer detects the touch center and moves to the top left corner. Is there a way to fix this?

pcldev commented 1 month ago

Can you provide sample code to describe more detail? I also can't do any action when using this package in iframe