L05 / p5.touchgui

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

Two buttons one over the other #38

Open alx-1 opened 1 year ago

alx-1 commented 1 year ago

Hello, when I toggle the visibility 'off' of a button covering another one underneath it still is perceived as the active one and prevents any events to be triggered (mouseOn, released, etc). I'm building a music app and would like to switch from a keyboard to a sequencer pad view but it's so far proven impossible to touch the keys underneath the sequencer pads. They still 'occupy the space' even though they are invisible. it would be so great to be able to layer gui objects. https://artengine.ca/acastonguay/technologies_de_la_f%c3%aate/ Example here

TheDiamondfinderNG commented 5 months ago

You have to change its enabled value to false