Zoom in and out with Phaser

I write an educational program in which I want to zoom in and zoom out. Zooming in succeeds, but when I zoom out, the program makes a strange movement to the right bottom before center the image. How can I solve this?

You see the problem in this example

Hi,
Comment this line in the zoomOut method:
// this.myCam.pan(2048, 1536, 1000, “Power2”);

1 Like

Yes, that is the solution. Thx!