Likbjorn / tag-cloud

Frontend representation for cloud of linked tags
MIT License
0 stars 0 forks source link

Bubbles are only attracted to cursor on mouse move #11

Closed Likbjorn closed 4 years ago

Likbjorn commented 4 years ago

Related to branch 8-cursor-gravity onmousemove event is used to update nearest node position. Therefore node is not attracted to cursor while no mouse input provided. Need to evaluate it in ticked function. To do so, need to figure out how to get mouse position if no d3.event object provided.