I implemented some panning controls in my game but it breaks once the "camera object" leaves the initial position at the top of the layout.
I can't find anything anywhere to get the mouse position on the window, not the layout, as they are different sizes (layout is far larger). So When I "pan" outside of the starting position, it switches back and fourth really fast because the touch coordinates are adding the distance from the north and west edges of the window, and the layout edges.
As a side note I absolutely scoured the internet and this website and spent hours in trial and error trying to get panning controls working.. I found one or two topics on them here, but one did not work and the other had a capx had an expired link. Please feel free to use the script I made for your game and let me know if there is an easier way to do it. I know there has to be than using 8 variables.
Thank you in advance.