Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Touch detection around iPhone screen edges feeling wonky
Started by thomas6 Oct 22 2018 05:22 AM

- - - - -
2 replies to this topic
touch detection screen edges border control center iphone wonky
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 877 posts
  • Corona SDK

Hi all,

 

Does anybody else have an issue with weird / bad touch detection around the screen borders of their iPhone or other devices?

 

I'm testing my game on my iPhone SE, and it feels as if a lot of touches are not registering when they are close to the edge of the screen.

 

It almost feels as if the touches don't go to the Corona app, but to the phone OS, for swiping from the edge to the center of the screen to open things like Apple's control center.

 

This feels really sucky, since my joypad control are fairly close to the edge of the screen, and they feel kind of unresponsive or erratic.

 

Anyone else have this, or potentially know of a fix?

 

Thanks,

Thomas



[TOPIC: post.html]
#2

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 150 posts
  • Corona Staff

Hi @thomas6,

 

Yes, this is iOS feature due to Control Center.  

native.setProperty("preferredScreenEdgesDeferringSystemGestures", true)
may help.


  • roaminggamer likes this

[TOPIC: post.html]
#3

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 877 posts
  • Corona SDK

Excellent, thanks Bektur! I searched the corona forums and documentation for this, because I had a feeling it might be a setting, but I couldn't find it.

 

Thanks again!




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: touch, detection, screen, edges, border, control center, iphone, wonky