Move parent div

I have a requirement to move the parentDiv dynamically during the game. But when I do that, the x, y coordinates still refer to old positions.

e.g say I have a button at position 100,100. I move the parent div 200 px left. The click on the button now registers coordinates -100, 100 and so its no longer relative to the game scene.

How can I re-lay out/re calculate the game coordinates.

you’re possibly updating the wrong object - you should be able to manipulate all in phaser registered objects, the framework does keep track of the changes. you could provide some code in order to more precisely describe your problem.