# How can I avoid this error on mobile browsers?

**URL:** <https://discourse.processing.org/t/how-can-i-avoid-this-error-on-mobile-browsers/8255>\
**Category:** Coding Questions\
**Created:** [February 9, 2019, 11:25pm UTC](https://discourse.processing.org/t/how-can-i-avoid-this-error-on-mobile-browsers/8255 "2019-02-09T23:25:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisjj](https://avatars.discourse-cdn.com/v4/letter/c/a698b9/32.png) [@chrisjj](https://discourse.processing.org/u/chrisjj)\
**Post date:** [February 9, 2019, 11:25pm UTC](https://discourse.processing.org/t/how-can-i-avoid-this-error-on-mobile-browsers/8255/1 "2019-02-09T23:25:39Z")

</div>

When I try to run [this](https://www.openprocessing.org/sketch/665112) openprocessing sketch on any mobile browser, when the touch is ended, I get an error Unable to dispatch event.

Could anyone verify this?

And suggest how I can avoid it?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [February 10, 2019, 11:09pm UTC](https://discourse.processing.org/t/how-can-i-avoid-this-error-on-mobile-browsers/8255/2 "2019-02-10T23:09:25Z")

</div>

Zero experience with openprocessing here on mobile.

What mobile are you experiencing this problem on?

Can you access the error logs? In browsers, it would be like the Developer Tools in Chrome so you can see the console messages. What error is reported there?

My first approach to debug this:

Disable both mouse events and see if the application still crashes. Then enable one at a time and figure out with event is causing the problem.

The sketch is simple enough that you should be able to re-write in in p5.js in case you are looking for an alternative, although I am not sure if the error will go away.

Kf
