-
Notifications
You must be signed in to change notification settings - Fork 19.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sankey frequent flashing with hovering on the node and edge #11306 #11572
Conversation
deqingli
commented
Nov 6, 2019
- Add an unfocusNodeAdjacency delay execution timer to delay execute the action.
- Add focus state make sure to execute the right action.
I think Like in the |
src/chart/graph/GraphView.js
Outdated
@@ -163,17 +164,15 @@ export default echarts.extendChartView({ | |||
|
|||
if (itemModel.get('focusNodeAdjacency')) { | |||
el.on('mouseover', el[FOCUS_ADJACENCY] = function () { | |||
clearTimeout(this._unfocusDelayTimer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also needs to set this._unfocusDelayTimer
to null
here. And in the following code with clearTimeout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I have fixed it.