You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/07/07 03:32:43 UTC

[GitHub] [incubator-echarts] plainheart commented on issue #12227: treemap位置导致第二次hover无效 & emphasis.label.formatter无效

plainheart commented on issue #12227:
URL: https://github.com/apache/incubator-echarts/issues/12227#issuecomment-654578231


   Seems to have nothing to do with treemap but related to zrender.
   
   When the mouse moves out the chart painter globally, it should set last hovered target to empty object `{}` as the [`resize`](https://github.com/ecomfe/zrender/blob/master/src/Handler.js#L241-L243) function does, otherwise as the logic in [Line 218 - Line 220](https://github.com/ecomfe/zrender/blob/master/src/Handler.js#L218-L220), it won't trigger `mouseover` event in this case.
   
   But not sure whether it should be placed at the bottom or just into the [`if (eventControl !== 'no_globalout')`](https://github.com/ecomfe/zrender/blob/master/src/Handler.js#L231) judgment.
   
   ![image](https://user-images.githubusercontent.com/26999792/86701211-67342080-c044-11ea-8be7-8c1dc996209a.png)
   
   
   ![2020-07-07 10 57 01](https://user-images.githubusercontent.com/26999792/86697555-13740800-c041-11ea-8e82-62f3a9fa3a84.gif)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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