From b535fc4461b6030c63b176d47298501e6239c2b2 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 25 Sep 2019 11:00:50 +0800 Subject: [PATCH] =?UTF-8?q?CHART-10611=20fix:=20=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E4=B8=8Etitle=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/single.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/base/single/single.js b/src/base/single/single.js index bdfdd4b03..d50b381d5 100644 --- a/src/base/single/single.js +++ b/src/base/single/single.js @@ -111,7 +111,11 @@ BI.Single = BI.inherit(BI.Widget, { clearTimeout(self.hideTimeout); self.hideTimeout = null; } - self._showToolTip(self._e || e, opt); + // CHART-10611 在拖拽的情况下, 鼠标拖拽着元素离开了拖拽元素的容器,但是子元素在dom结构上仍然属于容器 + // 这样会认为鼠标仍然在容器中, 500ms内放开的话,会在容器之外显示鼠标停留处显示容器的title + if (self.element.__isMouseInBounds__(self._e || e)) { + self._showToolTip(self._e || e, opt); + } } }, 500);