I would like to know how to detect when the user scrolls or zooms the chart. Basically on any user touch interaction.
We intend to use it to remove the current selected time range and close the info popup (if open). Also take into account that our chart opens the info popup manually using the onClick
event handler (example: http://jsfiddle.net/jLda8oys/9/).
We've tried using the onChartUpdate
event callback, but it isn't fired on every user interaction (not always when zooming out or scrolling, for example) and actually it has some kind of delay that raises problems (for example if the event is triggered after the user actually clicked to open the info popup).
The onAnimationDone
and onHoverChange
callbacks seem to be triggered by the info popup and the selection themselves, so they may not be appropriate.
What event callback should we use?
Thanks.