shauns / react-d3-radar

React-based Radar chart for D3
MIT License
53 stars 32 forks source link

fix issue where hoverMap is off in Firefox #18

Closed willkutler closed 2 years ago

willkutler commented 4 years ago

there's a lot of files changed since I needed to remove /lib from .gitignore to install the forked branch but the main change that needs to be made is in radarWrapper.js. The base repo uses event.offsetX and event.offsetY to calculate mouse position when a user hovers over it, but those attributes are not supported in Firefox which causes the onHover function to behave incorrectly.