Touch register in HTML5 for mobile devices (not running locally)

I know it would be much better to not make games for HTML5, but in this case the game I've made needs to be on HTML5 as it will be used for research and the experiments need to be done easily by kids. Anyways, the problem I have with the game is that the touch register event device_mouse_check_button it's not working past some points in the y axis when i run it from the server hosting it, but it wont show any problems when I run it locally on mobile devices and computer. So far I've tried only with Google Chrome (as its the most used explorer I guess) and in iPad Mini, Samsung S8 and iPhone X. All of the devices are on their latest OS version and the latest version of Google Chrome.

Does anyone know what's causing this? And how to fix it?