Closed falquaddoomi closed 9 years ago
Hey, this seems to be not a problem of JavaScript mode but of Processing.js itself. Please check with the latest plain version of Processing.js and if the problem is still there then report to their issues queue.
I'm attempting to run a processing.js sketch on a mobile device, but every time the user initiates a mouse event the following exception is thrown:
The error occurs at the following location in processing.js: https://github.com/fjenett/javascript-mode-processing/blob/master/resources/template/processing.js#L7575
I would have thought that 'eventHandlers' would be included in the scope where the callback to attachEventHandlers() is being defined, but apparently not. I've been able to replicate this issue using the mobile device emulator in Chrome for Windows v43.0.2357.124 m.
For completeness, I've included a basic sketch that demonstrates the problem: