# canvasGUI new version (0.9.5)

**URL:** <https://discourse.processing.org/t/canvasgui-new-version-0-9-5/46116>\
**Category:** Libraries\
**Created:** [March 30, 2025, 5:18pm UTC](https://discourse.processing.org/t/canvasgui-new-version-0-9-5/46116 "2025-03-30T17:18:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [March 30, 2025, 5:18pm UTC](https://discourse.processing.org/t/canvasgui-new-version-0-9-5/46116/1 "2025-03-30T17:18:11Z")

</div>

**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.

https://editor.p5js.org/quark-js/full/eXmuaaWOv

**canvasGUI** - [website](http://www.lagers.org.uk/canvasgui/index.html) and [github](https://github.com/quarks/canvasGUI)

---

<div class="post-metadata">

**Author:** ![scudly](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scudly/32/5597_2.png) [@scudly](https://discourse.processing.org/u/scudly)\
**Post date:** [March 30, 2025, 7:38pm UTC](https://discourse.processing.org/t/canvasgui-new-version-0-9-5/46116/2 "2025-03-30T19:38:34Z")

</div>

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

```auto
            gui.$('rgr0high').text(info.high.toString());

```

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [March 30, 2025, 7:48pm UTC](https://discourse.processing.org/t/canvasgui-new-version-0-9-5/46116/3 "2025-03-30T19:48:28Z")

</div>

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](https://editor.p5js.org/quark-js/sketches/eXmuaaWOv) in the web editor here I think you will find it works fine. 😃
