zrender icon indicating copy to clipboard operation
zrender copied to clipboard

fix(mouseout event): element mouseout event not working

Open Aaron0502 opened this issue 3 years ago • 1 comments

Brief Information

This pull request is in the type of:

  • [x] bug fixing
  • [ ] new feature
  • [ ] others

What does this PR do?

Fix a bug that if the pointer moving from the extra doms to really "outside", the value of the private variable "_hovered" needs to be set to “new HoveredResult(0, 0)”. Otherwise, the mouseout event won't fire when you move in from really outside the element for the second time.

Fixed issues

null

Details

codesandbox demo: https://codesandbox.io/s/zrender-bug-mouseout-685bsn

Others

Please help to review and solve as soon as possible.

Aaron0502 avatar May 16 '22 03:05 Aaron0502

It seems similar to apache/echarts#12227

plainheart avatar May 16 '22 05:05 plainheart