Open chrisnovello opened 6 years ago
The throwing p5.js
code:
// Bind events to window (not using container div bc key events don't work)
for (var e in this._events) {
var f = this['_on' + e];
if (f) {
var m = f.bind(this);
>>>>>>> window.addEventListener(e, m, { passive: false });
this._events[e] = m;
}
}
Bumping into a weird issue trying to use p5.js on Magic Leap and could use a 2nd set of eyes 👀 (This is all toward having p5 draw canvas texturess for use in a-frame/three.js, which I have working in Chrome)
Currently on v0.0.488
Boiled it down to a trivial example that shows the error:
opening https://p5-exokit.glitch.me/ on ML produces this show stopper in the console:
Created a super simple sketch just to show the issue https://glitch.com/edit/#!/p5-exokit?path=index.html
Maybe p5 is using something Exokit doesn't support? Will dig around more..