Simulate mouse events programmatically #4907
-
Hello, Sorry to bother you again but I'm trying to simulate mouse events programmatically (I want to fake a "click" from the user at a specific location on the screen). I saw your answer on this question: #4879 (comment) and I tried to implement it in the following codepen: https://codepen.io/Kalane/pen/GRBVVwq As you can see in the console, the I also tried to directly add the particle to the state (in the Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This examples simulates mouse events: https://codepen.io/matteobruni/pen/ExPoybM Anyway, what is the expected result? Random confetti explosions can be made without all this effort, the animation can be started when needed. If you need specific positions let me know, I can create a sample adding emitters when needed |
Beta Was this translation helpful? Give feedback.
This examples simulates mouse events: https://codepen.io/matteobruni/pen/ExPoybM
Anyway, what is the expected result? Random confetti explosions can be made without all this effort, the animation can be started when needed. If you need specific positions let me know, I can create a sample adding emitters when needed