# touchStarted on Safari Iphone

**URL:** <https://discourse.processing.org/t/touchstarted-on-safari-iphone/39221>\
**Category:** Coding Questions\
**Created:** [October 11, 2022, 10:37pm UTC](https://discourse.processing.org/t/touchstarted-on-safari-iphone/39221 "2022-10-11T22:37:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaimico](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jaimico](https://discourse.processing.org/u/jaimico)\
**Post date:** [October 11, 2022, 10:37pm UTC](https://discourse.processing.org/t/touchstarted-on-safari-iphone/39221/1 "2022-10-11T22:37:39Z")

</div>

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

> **[p5.js Web Editor](https://editor.p5js.org/ingrid.hoyos/full/XX6TmTizn)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

> **[p5.js Web Editor](https://editor.p5js.org/jaime.betancur/full/XT-DcpeCx)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

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

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 11, 2022, 10:48pm UTC](https://discourse.processing.org/t/touchstarted-on-safari-iphone/39221/2 "2022-10-11T22:48:11Z")

</div>

Hi Sir and welcome

> <https://github.com/processing/p5.js/issues/5358>
>
> \#### Details about the bug:
> 
> \- p5.js version: 1.4
> \- Web browser and version: …any
> \- Operating System: Last iOS
> \- Steps to reproduce this:
> I tested with iPhone and iPad with safari and chrome. 
> https://p5js.org/examples/interaction-kaleidoscope.html
> 
> You can check here in the official site

---

<div class="post-metadata">

**Author:** ![vkbr](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/vkbr/32/16844_2.png) [@vkbr](https://discourse.processing.org/u/vkbr)\
**Post date:** [October 12, 2022, 12:28am UTC](https://discourse.processing.org/t/touchstarted-on-safari-iphone/39221/3 "2022-10-12T00:28:34Z")

</div>

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

```auto
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;
}

```
