Pass triggering event object when firing events
For example, when an item in a Legend is clicked, the 'legendItemClick' event is sent via 'fireEvent'. The recipient of the event does not get passed information from the original event, however. In our application, we want to deselect all legend items except the clicked item when the click is performed with the alt key selected. Without the actual event object, our code which handles the legendEventClick does not know the state of the Alt key.
As a workaround, we modified the Legend code to do the following:
...
fireEvent (item, strLegendItemClick, {
eventDetails: event
}, fnLegendItemClick);
...
Seems like passing the event along on any event which is triggered by a user event would be helpful.
-
Anonymous commented
Trostien, this isn't true.
mouseOver and click event both get partial mouse events, but different ones. why not pass browser event?
to be specific, not having 'e.pageY' on mouseOver disables my ability to control modals overflowing. had to attach my own SVG to your chart to get a real mouse event.version 6.1.0
-
This is more of a bug than a feature request. Other click events pass on the browser's event. See http://github.com/highslide-software/highcharts.com/issues/closed#issue/4.