L05 / p5.touchgui

A multi-touch and mouse GUI Library for p5.js
174 stars 21 forks source link

Library isn't working for me #26

Open dolphin007x opened 3 years ago

dolphin007x commented 3 years ago

Is the library not supposed to work with other libraries such as Compass.js and p5.geolocation.js ? Actually I was using some libraries along with p5.touchgui.js, and the GUI button does not seem to work.

dolphin007x commented 3 years ago

The error shown in the console is this :

Uncaught TypeError: canvas.getBoundingClientRect is not a function at Gui._getCanvasPos (p5.touchgui.js:171)

at Gui._onMouseMove (p5.touchgui.js:469)