Skip to content

Defect fix for #6

Latest
Compare
Choose a tag to compare
@rrag rrag released this 13 Aug 12:13
· 843 commits to master since this release

Fix for #6

EventCapture has a required property mainChart. The xScale of that chart is used to determine where the mouse pointer is and by how much a zoom or pan has occured.

In this example EventCapture is not present and so mainChart is undefined leading to this issue. This fix takes the first Chart as the mainChart if EventCapture is not defined