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. 2
      src/interaction.js

2
src/interaction.js

@ -290,11 +290,9 @@ 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 () {
var targetsToShow = $$.filterTargetsToShow($$.data.targets); var targetsToShow = $$.filterTargetsToShow($$.data.targets);

Loading…
Cancel
Save