未验证 提交 ed198579 编写于 作者: Y Yi Shen 提交者: GitHub

Merge pull request #13100 from dr-itz/fix/keep-axis-tooltip

fix(tooltip): keep axis tooltip open on refresh
...@@ -212,9 +212,6 @@ class TooltipView extends ComponentView { ...@@ -212,9 +212,6 @@ class TooltipView extends ComponentView {
this._api = api; this._api = api;
// Should be cleaned when render.
this._lastDataByCoordSys = null;
/** /**
* @private * @private
* @type {boolean} * @type {boolean}
...@@ -272,7 +269,8 @@ class TooltipView extends ComponentView { ...@@ -272,7 +269,8 @@ class TooltipView extends ComponentView {
// FIXME // FIXME
!api.isDisposed() && self.manuallyShowTip(tooltipModel, ecModel, api, { !api.isDisposed() && self.manuallyShowTip(tooltipModel, ecModel, api, {
x: self._lastX, x: self._lastX,
y: self._lastY y: self._lastY,
dataByCoordSys: self._lastDataByCoordSys
}); });
}); });
} }
...@@ -382,7 +380,7 @@ class TooltipView extends ComponentView { ...@@ -382,7 +380,7 @@ class TooltipView extends ComponentView {
tooltipContent.hideLater(this._tooltipModel.get('hideDelay')); tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));
} }
this._lastX = this._lastY = null; this._lastX = this._lastY = this._lastDataByCoordSys = null;
if (payload.from !== this.uid) { if (payload.from !== this.uid) {
this._hide(makeDispatchAction(payload, api)); this._hide(makeDispatchAction(payload, api));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册