canvasGUI new version (0.9.5)

canvasGUI (0.9.5) now supports touch screen events so Slider and Ranger controls can be now used on mobile devices. You can try it out here.

canvasGUI - website and github

2 Likes

When I click on your ranger examples it errors out:

TypeError: Cannot read properties of undefined (reading ‘high’)

:cherry_blossom: p5.js says:
[sketch.js, line 34] Cannot read property of undefined. Check the line number in error and make sure the variable which is being operated is not undefined.

Ah, you’re missing a set a parentheses in the demo code on that line. Should be

            gui.$('rgr0high').text(info.high.toString());
1 Like

It is not a bug in the library rather a mistake in the sketch code which I have corrected.
Just noticed you found the bug already. :innocent:

If you force refresh the page or visit the sketch in the web editor here I think you will find it works fine. :smiley:

1 Like