Browse Source

fixed bug where onmouseover wasn't being called for data belonging to

the same series.
pull/1549/head
Andy Dufilie 9 years ago
parent
commit
1a1ba33511
  1. 6
      src/interaction.js

6
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 // Show cursor as pointer if point is close to mouse position
if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) { if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
$$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer'); $$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer');
if (!$$.mouseover) { config.data_onmouseover.call($$.api, closest);
config.data_onmouseover.call($$.api, closest); $$.mouseover = closest;
$$.mouseover = closest;
}
} }
}) })
.on('click', function () { .on('click', function () {

Loading…
Cancel
Save