How can I avoid this error on mobile browsers?


#1

When I try to run this 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?


#2

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