Babylon Editor - Touch does not work

I’m trying to make a camera responsive on mobile. The scene is built and exported from the Editor, using the Editor Camera (which should be the new universal camera with built-in touch). But simply does not work.

I did add to the html:

script src=“


#renderCanvas {
touch action: none;
-ms-touch-action: none;

Here’s the example:

Ping @julien-moreau

1 Like

@a_bolog good catch, I’m having a look and fixing it
Thanks for reporting!

Oke cool, I thought I was doing something wrong.

And could you help me out with a script to fix it? As I need to launch it in two days.

I’d be greatful.

@a_bolog you can add the touch support in your script like this:

You can add it in your game.ts file :slight_smile:

Hmm, I receive this error when I try to yarn build it.

src/game.ts:62:33 - error TS2339: Property ‘addTouch’ does not exist on type ‘CameraInputsManager’.

game.ts looks like this:

Looks like a typings issue
Try to cast the .inputs member to FreeCameraInputs or something like this