While working on EventChart, we observed that the click event on EventChart is not working 100% of the time. So I open it here just in case if anyone faces the same issue. The issue is very hard to reproduce on Google Chrome but it always happen on Safari.
Through investigation, we notice the following points
The onSelectionChange of EventChart is binding into <rect /> (event) directly
OnMouseDown, there is grey <rect /> overlay, to visualize dragging area
My guess: sometimes the grey <rect /> is on top of the EventChart's <rect /> which prevent the event to be fired.
This change just makes sure that the grey <rect /> are not accepting pointer events (hence the EventChart's <rect /> would receive it) since it just to visualize the dragging area, it should not affect anything.
While working on EventChart, we observed that the click event on EventChart is not working 100% of the time. So I open it here just in case if anyone faces the same issue. The issue is very hard to reproduce on Google Chrome but it always happen on Safari. Through investigation, we notice the following points
<rect />
(event) directly<rect />
overlay, to visualize dragging area<rect />
is on top of the EventChart's<rect />
which prevent the event to be fired.This change just makes sure that the grey
<rect />
are not accepting pointer events (hence the EventChart's<rect />
would receive it) since it just to visualize the dragging area, it should not affect anything.