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 2019/10/29 19:15:41 UTC

[GitHub] [incubator-echarts] sjcobb commented on issue #8084: bar实现鼠标左键点击高亮/右键点击取消高亮不生效

sjcobb commented on issue #8084: bar实现鼠标左键点击高亮/右键点击取消高亮不生效
URL: https://github.com/apache/incubator-echarts/issues/8084#issuecomment-547586089
 
 
   Try using [event.Mouse.events.mousedown](https://echarts.apache.org/en/api.html#events.Mouse%20events.mousedown) instead of event.Mouse.events.mousedown.click. When the event returns 'event.which === 3', that refers to a right click so the code to cancel the highlight will go in that condition ('event.which: 1' is left click).

----------------------------------------------------------------
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


With regards,
Apache Git Services

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