p5.touchgui icon indicating copy to clipboard operation
p5.touchgui copied to clipboard

Library isn't working for me

Open dolphin007x opened this issue 4 years ago • 1 comments

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 avatar May 15 '21 08:05 dolphin007x

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)

dolphin007x avatar May 15 '21 08:05 dolphin007x