You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "liuwo23 (via GitHub)" <gi...@apache.org> on 2023/11/14 08:16:45 UTC

[I] [Bug] 在触屏设备中,echarts.getZr().on('mouseover')空白处是无返回的,而在文档中说鼠标在任何地方都能触发zrender的鼠标事件 [echarts]

liuwo23 opened a new issue, #19296:
URL: https://github.com/apache/echarts/issues/19296

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=map-HK
   
   ### Steps to Reproduce
   
   我在一个触屏设备中检测鼠标的mouseover事件,在有目标的情况之下,mouseover正常触发,在无目标的区域(即空白处)mouseover没有正常触发。当我换成一个没有触屏功能的显示器时,mouseover在有目标和无目标的区域都能触发。
   我想这应该是zrender的一个兼容触屏的bug,导致的问题。
   
   ```
     myChart.getZr().on('mousemove', function(event){
         console.log('onmousemove!!!!')
     })
   ```
   
   ### Current Behavior
   
   在触屏设备中,zrender的 mouseover 对无目标的区域(即空白区域)没有触发鼠标事件,click事件是正常的,空白处也能触发,但是mouseover有异常
   
   ### Expected Behavior
   
   在触屏设备中,zrender的 mouseover 也应该和click事件一样,都能在空白区域进行触发,就像文档中说的那样”zrender 事件与 echarts 事件不同。前者是当鼠标在任何地方都会被触发,而后者是只有当鼠标在图形元素上时才能被触发。“
   
   ### Environment
   
   ```markdown
   - OS: winodws 10
   - Browser: chrome 119.0.6045.123
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

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


Re: [I] [Bug] 在触屏设备中,echarts.getZr().on('mouseover')空白处是无返回的,而在文档中说鼠标在任何地方都能触发zrender的鼠标事件 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19296: [Bug] 在触屏设备中,echarts.getZr().on('mouseover')空白处是无返回的,而在文档中说鼠标在任何地方都能触发zrender的鼠标事件
URL: https://github.com/apache/echarts/issues/19296


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Bug] 在触屏设备中,echarts.getZr().on('mouseover')空白处是无返回的,而在文档中说鼠标在任何地方都能触发zrender的鼠标事件 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19296:
URL: https://github.com/apache/echarts/issues/19296#issuecomment-3529712396

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Bug] 在触屏设备中,echarts.getZr().on('mouseover')空白处是无返回的,而在文档中说鼠标在任何地方都能触发zrender的鼠标事件 [echarts]

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #19296:
URL: https://github.com/apache/echarts/issues/19296#issuecomment-1809726614

   @liuwo23 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] In touch screen devices, echarts.getZr().on('mouseover') does not return any blank space, but the document says that the mouse can trigger zrender's mouse event anywhere.
   
   **BODY**
   
   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=map-HK
   
   ### Steps to Reproduce
   
   I detected the mouseover event in a touchscreen device, and the mouseover triggered normally in the case of a target, and the mouseover did not fire properly in the area where there was no target (i.e. in the empty space). When I switched to a monitor without touchscreen capabilities, the mouseover triggered in both targeted and untargeted areas.
   I think this is due to a touchscreen compatible bug in zrender.
   
   ```
     myChart.getZr().on('mousemove', function(event){
         console.log('onmousemove!!!!')
     })
   ```
   
   ### Current Behavior
   
   In touchscreen devices, Zrender's mouseover does not trigger mouse events for untargeted areas (i.e. empty spaces), the click event is normal, and white spaces can also be fired, but the mouseover is abnormal
   
   ### Expected Behavior
   
   On touchscreen devices, the zrender mouseover should also fire in the same empty space as the click event, as the documentation says "zrender events are different from echarts events." The former is triggered when the mouse is triggered anywhere, while the latter is triggered only when the mouse is on a graphic element. “
   
   ### Environment
   
   ```markdown
   - OS: winodws 10
   - Browser: chrome 119.0.6045.123
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Bug] 在触屏设备中,echarts.getZr().on('mouseover')空白处是无返回的,而在文档中说鼠标在任何地方都能触发zrender的鼠标事件 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19296:
URL: https://github.com/apache/echarts/issues/19296#issuecomment-3560046144

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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