Custom interaction : Is it a bug?

Hello everyone and @norm

I am testing Blocs 6.3 Plus after updating at a discounted price following Black Friday.

I am encountering an issue with custom interactions. If you take a look at the attached file, I created a small image selector with a ‘selector’ button, and it works very well on hover. However, if I set this selector to ‘On click’, it does not work.

Is this a bug or am I doing something wrong?

Thank you.

Test.bloc (677.5 KB)

1 Like

@Norm Hello. Do you have any idea ?

Thank you

I’ll take a look :eyes:

I just took a little look at your project.

It looks like the interaction(s) you have created wont work because the checkbox will get stuck in a state as you have 2 interaction for the toggle so once the click interaction is class to set to blue it will not invert the other way.

I’ve created a single interaction that uses a slight delay to allow the visibility animation to complete and then set the switch value (on/off) based on if red or blue is visible.

This is set to all supported events.

The Final Result.

CleanShot 2025-12-04 at 14.28.43

Here is the project to inspect.

Test (1).bloc (694.3 KB)

I hope this helps.

1 Like

Thank you very much. @Norm

That’s perfect. It allows me to discover and learn how custom interactions work. It’s a real bonus for Blocs.

Well done, and thank you again.

1 Like