UI sometimes acting weird on mobile phones. Even when using scale instead of offset (Constraint to XY). (Scrolling frames get fixed when using them)

This is how most of my UI looks in studio.
The frame in explorer:

Relevant properties: image

I thought the problem occured because of the use of folders in the ScreenGui. But after changing everything to frames, the problem still persisted.

This is how most of the UI gets when on mobile.

But, when this happens to the main frame containing two scrolling frames, when you scroll one of the scrolling frames, the particular main frame seems to get “fixed”. Example:

image

Any ideas how to fix this?

Edit: When using the phone emulator in studio, the UI works well:

Edit2: After testing it on three mobile devices (Huawei P30 lite, an iPhone 7 and a Samsung A something), the problem didn’t appear on the iPhone.

1 Like

If everything is well scaled, I think it is a roblox error, it also happens to me but when I interact with the gui it returns to normal, it is very strange.

1 Like

Aslong as you have the guis correctly scaled, the only possible error would be on robloxs end.

1 Like

The fact that it is not always that it acts this way, and in studio with the emulator works fine, it could be.

But it should be more probably that is a mistake of mine than roblox rbh since mobile should be pretty ok by now.

I think it is still more probable to be a problem from my part than roblox’s. Trying to figure it out in case that is the case.

Some suggested that it might be a bug from Roblox’s part. It still doesn’t seem to be fixed and I can’t report it in mobile bugs because I am not a regular.

If anyone has any ideas on how this could be solved, I’m ready to listen. The game is pretty small as it is, I can’t afford to drive away mobile players because of something like this. :confused:

I found a work-around to this. It seem that the ui gets “confused” when in portrait mode so that when the app switches in game to landscape mode, the ui gets broken.

I found that waiting a little bit until the game is in landscape mode, deleting every object within the PlayerGui and replacing with a copy from StarterGui seems to solve this. (Don’t forget to not delete TouchGui etc)