From 1a1ba33511cfe9541aed8c4c5b0df8e1b0dbc430 Mon Sep 17 00:00:00 2001 From: Andy Dufilie Date: Mon, 18 Jan 2016 17:05:29 -0500 Subject: [PATCH] fixed bug where onmouseover wasn't being called for data belonging to the same series. --- src/interaction.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/interaction.js b/src/interaction.js index c6203d9..660c149 100644 --- a/src/interaction.js +++ b/src/interaction.js @@ -290,10 +290,8 @@ c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter) // Show cursor as pointer if point is close to mouse position if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) { $$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer'); - if (!$$.mouseover) { - config.data_onmouseover.call($$.api, closest); - $$.mouseover = closest; - } + config.data_onmouseover.call($$.api, closest); + $$.mouseover = closest; } }) .on('click', function () {