USE VERSION 0.9.6
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.
USE VERSION 0.9.6
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.
When I click on your ranger examples it errors out:
TypeError: Cannot read properties of undefined (reading ‘high’)
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());
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.
If you force refresh the page or visit the sketch in the web editor here I think you will find it works fine.