mouseClick() function doesn't work on iPhone (p5.js)

I’ve made a simple application. It works on all major platforms (macOS, Windows, Android etc) but it doesn’t do anything on iPhone Safari. It just draws things on the screen but nothing interactive; nothing written in mouseClick() function seems to work.

I was so expectant that I was going to make a mobile application with Ionic framework with this application. Is there any solution to this?

Did you try touchStarted()?