touchStarted on Safari Iphone

Hello, I am preparing an exhibition of my students’ projects, from the Share option, like this

In a computer web browser it works, but it doesn’t work when opening the code in iphone safari.
How can I make it work in safari? on Android it works fine.

Thanks

Hi Sir and welcome

2 Likes

I have this same problem (just tested in ios). this hack apears to work, not sure though.

function touchMoved() {
    if (touches.length >= 1) {
        mouseX = touches[0].x
        mouseY = touches[0].y
    }
   // prevent the display from moving around when you touch it
    return false;
}
2 Likes