From c020e9e69a48a05bb53faa32832955526f13daae Mon Sep 17 00:00:00 2001 From: lang Date: Mon, 29 Feb 2016 23:00:19 +0800 Subject: [PATCH] tweak --- src/component/tooltip/TooltipContent.js | 2 +- src/component/tooltip/TooltipView.js | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/component/tooltip/TooltipContent.js b/src/component/tooltip/TooltipContent.js index a8ecb2463..e7e6f0d04 100644 --- a/src/component/tooltip/TooltipContent.js +++ b/src/component/tooltip/TooltipContent.js @@ -201,7 +201,7 @@ define(function (require) { } // Hide the tooltip // PENDING - this.hide(); + // this.hide(); }, show: function (tooltipModel) { diff --git a/src/component/tooltip/TooltipView.js b/src/component/tooltip/TooltipView.js index b27a95143..ebb401f91 100644 --- a/src/component/tooltip/TooltipView.js +++ b/src/component/tooltip/TooltipView.js @@ -237,9 +237,16 @@ define(function (require) { // Try to keep the tooltip show when refreshing if (this._lastX != null && this._lastY != null) { - this._manuallyShowTip({ - x: this._lastX, - y: this._lastY + var self = this; + clearTimeout(this._refreshUpdateTimeout); + this._refreshUpdateTimeout = setTimeout(function () { + // Show tip next tick after other charts are rendered + // In case highlight action has wrong result + // FIXME + self._manuallyShowTip({ + x: self._lastX, + y: self._lastY + }); }); } -- GitLab