Touch coordinates on mobile with html5

I found that when I opening my html5-game in mobile chrome, touch events are not working. 

Some experiments show, that:

  1. object:addEventListener(“touch”, …) is not working.

  2. Runtime:addEventListener(“touch”, …) is working, but always shows zero coordinates (event.x = 0, event.y = 0).

It seems that Corona app is not receiving coordinates from canvas or something like that.

That problem didn’t appear in pc browsers. 

Can someone help me?

Sample project to reproduce the issue: https://www.dropbox.com/s/kzi30giwtipidww/EmptyTest2.zip?dl=0

tested EmptyTest2.zip on Android 8.1 … works for me

@rockstar.koenig, on what device the test does not work ?

xiaomi redmi 4x

html5-version, not apk. in mobile chrome browser

just uploaded html-build to http://inkgroupgames.ru/et/index.html

please, open it from mobile chrome and tell me if it will work properly (circle must change its position after touch)

tested http://inkgroupgames.ru/et/index.html on Android 8.1 … works

what Android in your xiaomi redmi 4x ?

version 7.1.2 N2G47H

Hi @rockstar.koenig

Can you please share your mobile Chrome version and tell if you have any browser addons/extensions installed.

sure

no addons

version Chrome 70.0.3538.110

We have tested on 3 various Android 7 devices… the test works on each of them

weird

yes, i also tested on my other 2 devices - works fine.

but still not working on xiaomi redmi 4x

weird

Sample project to reproduce the issue: https://www.dropbox.com/s/kzi30giwtipidww/EmptyTest2.zip?dl=0

tested EmptyTest2.zip on Android 8.1 … works for me

@rockstar.koenig, on what device the test does not work ?

xiaomi redmi 4x

html5-version, not apk. in mobile chrome browser

just uploaded html-build to http://inkgroupgames.ru/et/index.html

please, open it from mobile chrome and tell me if it will work properly (circle must change its position after touch)

tested http://inkgroupgames.ru/et/index.html on Android 8.1 … works

what Android in your xiaomi redmi 4x ?

version 7.1.2 N2G47H

Hi @rockstar.koenig

Can you please share your mobile Chrome version and tell if you have any browser addons/extensions installed.