Had a quick look into your project while procrastinating from my own. I didn’t see anything but black, the project isn’t loaded which, according to the JS-console, is due to the if clause on line 65 in “r.js”.
With that if, you try to say: “If there is a pinch-zoom, do this and that”, right?
While not knowing about the mobile touch commands of PC yet, I would recommend to attach the pinch in the initialize part of the script (app.something.on(“On what?”, callback function)).
Hi @sinobu. It is easy to debug scripts in PlayCanvas. I recommend using Google Chrome but you can do this in any browser. First, launch your app, then hit F12 (on Windows) to open the browser Dev Tools. Then activate the ‘Sources’ tab. You’ll see something like this, where you can find your source file, set breakpoints and inspect variables: