Location/area on mobile does not match desktop

On mobile, I have figured out how to rotate the character independently of the joystick and the camera.

It works great.

The question I have is about the size and position of the TouchArea.

Im using a Frame as a TouchArea for where the player is touching the screen. I make sure the touch is within the TouchArea before accepting it as a point to rotate the character toward.

On desktop, it works as expected. The TouchArea is in the center of the screen and the script works perfectly.

On mobile, I had to align the TouchArea with the right side of the screen to get the script to ”think” it is in the center of the screen. Makes no sense that I can figure.

Does anyone know why mobile is reading the frame as being in the center when it is really right aligned?

Here is the test file:

Rotate To Mouse.rbxl (65.7 KB)

Moved box back to center and tested on new iPad; worked fine, just like desktop.

The phone I was using is 7 years old, guess the Roblox app doesn’t work properly on a phone that old.