Particles push interaction #5335
-
Hello! I use tsparticles for Angular. I have a page with particles in the background and with many buttons and different elements on it. When I click on these buttons and elements (different divs) I get new particle created, this behavior is unwanted. Is there a way to make particles being created only on empty space click? Setting event.stopPropagation() on buttons doesn't help. Maybe I need to somehow override the click event handler? I tried to use Container's addClickHandler, but it doesn't override the default handler, just adds a new one, as far as I understand. I use this configuration:
and options are set like this
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
(change
|
Beta Was this translation helpful? Give feedback.
(change
detect_on
indetectsOn
,detect_on
was removed in v3, deprecated in v2)detectsOn: "canvas"
will fix your issue