I come to the situation to scale the whole game content to match the current resolution of the device or system playing the game. So this means to change “gameCanvas” size dynamically.
Whenever it changes, touch position is still the old one and doesn’t update with the new size of gameCanvas. This effect when you try to touch the button or anything involves with touch position, even you call “setScale()” for all objects, touch position misses the button.
Any suggestions or helps to make the touch position keeps up with the resolution changes in real time ?