Job van der Zwan
                                            Job van der Zwan
                                        
                                    Oh, right, I see it now. I guess what confused me was my own choice to save the `p5` object as `sketch` instead of `p5`. There's still two ways this...
I just realised there is another problem, see comments in sketch below: ```js (p5, { width, height, updateProps }) => { // because this sketch is derived each time, //...
Ok, even freakier: I added `clickBgColor2` and `clickLineColor2` because re-using the same variable made neither sketch work, but now click either sketch _inverts the other_, even though `updateProps` is updating...
And it looks like I can click _anywhere on the page_ and trigger a mouseClicked in any sketch. But it doesn't always have that problem.
Oops, I forgot to update all the variables, you're right. The false `mouseClicked` trigger also means `updateProps` is called twice, which turns out to be the reason it didn't work...
Keyboard events added in my branch, see https://jobleonard.github.io/idyll-p5/ for a simple demo. By default, p5 sketches need to be clicked/tapped on firs before gaining "focus" and listening to to mouse-...
Added first attempt at touch events, although they don't quite work as they're supposed to yet. Not sure what's breaking them. The bigger issue right now is that all of...
Great, hope you'll make some headway! I'm happy to join in again once you get the basics working, that'll make it easier for me to figure out how to make...
Hey, I see that you've been really busy with other things. Just a quick question: would it be worthwhile to open a separate issue to discuss how to handle how...
Hey, just a quick message to say that I haven't forgotten about this. I've just been too busy to work on it. For the last months I have been focused...