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.