cosmograph-org / cosmos

GPU-accelerated force graph layout and rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repulsionFromMouse doesn't seem to work

Leandro4002 opened this issue · comments

Hello,

I can't manage to get the repulsionFromMouse option to work.
I try to add this option on this sandbox but it doesn't work.
https://codesandbox.io/s/cosmos-usage-example-forked-cfloc1?file=/src/index.ts

Is there something I don't understand or it's not implemented ?

@Leandro4002 Thanks for your question!

You have a working example!
We forgot to mention in the repulsionFromMouse description that the repulsion force is activated by pressing the right mouse button 🤦‍♀️.