You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/10/14 07:29:55 UTC

[incubator-echarts] branch bugfixes created (now c29d496)

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a change to branch bugfixes
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.


      at c29d496  fix(state): only leave hoverd state when it's applied. #13417

This branch includes the following new commits:

     new c29d496  fix(state): only leave hoverd state when it's applied. #13417

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[incubator-echarts] 01/01: fix(state): only leave hoverd state when it's applied. #13417

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch bugfixes
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit c29d49684ce9d8d24aab98d50361302f818f7405
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Oct 14 15:29:06 2020 +0800

    fix(state): only leave hoverd state when it's applied. #13417
---
 src/util/states.ts | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/util/states.ts b/src/util/states.ts
index 8e85e32..eeff7ab 100644
--- a/src/util/states.ts
+++ b/src/util/states.ts
@@ -100,7 +100,9 @@ function singleEnterEmphasis(el: ECElement) {
 function singleLeaveEmphasis(el: ECElement) {
     // Only mark the flag.
     // States will be applied in the echarts.ts in next frame.
-    doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);
+    if (el.hoverState === HOVER_STATE_EMPHASIS) {
+        doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);
+    }
 }
 
 function singleEnterBlur(el: ECElement) {
@@ -108,7 +110,9 @@ function singleEnterBlur(el: ECElement) {
 }
 
 function singleLeaveBlur(el: ECElement) {
-    doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);
+    if (el.hoverState === HOVER_STATE_BLUR) {
+        doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);
+    }
 }
 
 function singleEnterSelect(el: ECElement) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org