Browse Source

register different bars in same series as distinct mouseover targets

pull/2151/head
nbdavies 8 years ago
parent
commit
9dc2dd700b
  1. 2
      src/interaction.js

2
src/interaction.js

@ -259,7 +259,7 @@ c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter)
mouse = d3.mouse(this);
closest = $$.findClosestFromTargets(targetsToShow, mouse);
if ($$.mouseover && (!closest || closest.id !== $$.mouseover.id)) {
if ($$.mouseover && (!closest || closest.id !== $$.mouseover.id || closest.index !== $$.mouseover.index)) {
config.data_onmouseout.call($$.api, $$.mouseover);
$$.mouseover = undefined;
}

Loading…
Cancel
Save