iPhoneX - touch areas (DEF-3233) (SOLVED)

Testing our game on several different units we have a problem with iPhoneX as it doesnt seem to register touch on the upper and lower areas of the screen (landscape mode) . On all other devices it works fine.
Have anyone else experienced this? Could this be a bug or is it how the iPhoneX is designed?
Looking at this link from apple it seems like there is a huge difference in the margins where it doesn’t register on the iPhoneX for Defold.

Just to make sure, do you mean the regular top/bottom of the phone or the top/bottom when holding the phone in landscape orientation (left/right sides in portrait orientation)?

The second (left/right sides in portrait orientation). So it doesn’t really interfer with the “camera-strip”.

1 Like

I probably have a repro case on an iPhone X over here. In landscape mode it is still possible to swipe from the top downward to slide down the iOS notification screen. Likewise swiping from bottom upward will minimise the app.

There seems to be dead-zones for beginning any touch inputs as well on these areas. If a touch input begins outside these areas the input will register inside these dead zones. However no touch input that began inside these dead zones will register anywhere.

Added ticket DEF-3196 for this issue.

One possible fix might be to use preferredScreenEdgesDeferringSystemGestures. I have not verified that this resolves the issue though.

3 Likes

Thank you Johan.
We will for now take it easy and wait to see if there is a close and easy fix for it.

1 Like

This is not only iPhone X issue!
Touch handling broken on every iOS device. This is happened several days ago, after some Defold update. Previously all working fine.
I am sure it related to preferredScreenEdgesDeferringSystemGestures. Override this method and return UIRectEdgeAll.

Just checked out. The last Defold version that worked correctly (at least on my iPhone 5s and iPad mini) is 1.2.122 (fce7921da858a71876773c75920b74310ca7ac1f).
On 123 and 124 versions touch handling is not working correctly at top and bottom of the screen in landscape orientation.

2 Likes

Yes, this is related to the iOS SDK upgrade we did recently, so it affects all iOS devices. @Mathias_Westerdahl, have you looked into this?

1 Like

No I have not. I must have missed something crucial in the update. Will investigate in the morning!

4 Likes

We’ve tried the fix and it seems to work on both iOS11 devices and also pre iOS11 as well.
It should land in the next release scheduled on monday.

7 Likes

Solved in Defold 1.2.125

1 Like