From aca169762d524225f617d65534b181f0b2c497e5 Mon Sep 17 00:00:00 2001 From: nbdavies Date: Wed, 23 Aug 2017 11:52:12 -0500 Subject: [PATCH] Reset mouseover when cursor leaves grid --- src/interaction.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/interaction.js b/src/interaction.js index 065edcf..1ccd458 100644 --- a/src/interaction.js +++ b/src/interaction.js @@ -247,6 +247,10 @@ c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter) .on('mouseout', function () { if (!$$.config) { return; } // chart is destroyed if ($$.hasArcType()) { return; } + if ($$.mouseover){ + config.data_onmouseout.call($$.api, $$.mouseover); + $$.mouseover = undefined; + } mouseout(); }) .on('mousemove', function () {