Skip to main content
D
6d ago

Ability to disable click-through

Hello!

Would it be possible to implement a property for objects & nested artboards to disable their ability to be clicked (or to prevent clicking through them)?

I have a nav menu that stacks all the cards when clicked, placing the selected card on the top of the stack. To go back, the user would click the stack and the cards will fan back out. However, clicking the stack toggles click booleans for EVERY SINGLE CARD.

If there is an existing fix for this I have not been able to track it down, and it would help a ton if implemented!

Thanks!

2 replies
D
6d ago

Did you try "Opaque target" in listener's settings? It could solve your problem. Or you can maket a 0% transparent button with this method, and it could absorb the click events. I usually use this to prevent temporarily the artboard from pointer events.

D
5d ago

Thanks for the response!

Perhaps I'm setting up my event hierarchy a little wonky, but the click event fires from the nested artboard, and is caught in the parent artboard. Just tried the opaque target fix and neither the nested artboard or its group can be set as opaque (doesn't allow me to check the checkbox).

However, I think the invisible hitboxes will be a perfect fix! Thank you for the recommendation.