Skip to content
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(handler): fix global out not work bug. #693

Merged
merged 1 commit into from
Jan 9, 2021
Merged

Conversation

pissang
Copy link
Contributor

@pissang pissang commented Jan 9, 2021

fix apache/echarts#13958

Why this bug happens:

This bug is brought when fixing the wrong mouseout event triggered in SVG renderer in https://github.com/ecomfe/zrender/compare/fix-global-out?expand=1#diff-619a90e06ad2f3966dac739e2d1fb17006d9f44978316c758d694a40cde28201L222

But in canvas renderer, the event.target will is the canvas element when mouseout. Not the viewport. So the globalout will never be triggered.

Fix:

Determine if the target element is a descendant of the viewport. If so, both mouseout and globalout event won't be triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tooltip不消失,在快速滑动的情况下
2 participants