D3-graph-gallery icon indicating copy to clipboard operation
D3-graph-gallery copied to clipboard

Improvement

Open PascalHessler opened this issue 5 years ago • 0 comments

Hey first i want to thank you for u'r cool explanations. I found a small improvement at this side.

You’re describing 3 ways how to get the mouse position. The first way is not a good solution because it does not work in every browser. Instead of event.pageX() you should use d3.event.pageX. It works really good for me. Especially when u zoom in and out it’s the only solution that really works.

PascalHessler avatar Feb 21 '20 15:02 PascalHessler