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/06/18 09:33:27 UTC

[GitHub] [incubator-echarts] tikeyc opened a new issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

tikeyc opened a new issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823


   ### Version
   4.8.0
   
   ### Steps to reproduce
   直接使用官网的列子:https://echarts.apache.org/examples/zh/editor.html?c=mix-zoom-on-value
   在触屏的电脑或大屏显示器上无法拖动节点。
   发现在此之前有人提过类似的问题,
   #9301(https://github.com/apache/incubator-echarts/issues/9301)
   #7406(https://github.com/apache/incubator-echarts/issues/7406)
   #12166(https://github.com/apache/incubator-echarts/issues/12166)
   
   ### What is expected?
   但更新到echarts4.8.0版本.无法拖动的问题依然存在。只有去修改源码将touchEventsSupported的值强制设置成true后问题便得到了解决。
   
   ### What is actually happening?
   *
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


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


[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-650989909


   @plainheart 
   使用的浏览器是: Chrome;
   navigator.userAgent的值是:"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"


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


[GitHub] [incubator-echarts] plainheart edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645973348


   > 但更新到echarts4.8.0版本.无法拖动的问题依然存在。只有去修改源码将touchEventsSupported的值强制设置成true后问题便得到了解决。
   
   如果按照你说的将`touchEventsSupported`设置为`true`即可解决该问题,那么很有可能是在判断环境是否支持触摸事件的逻辑上存在bug,导致echarts认为当前环境不支持`touchEvents`,有待验证。
   
   https://github.com/ecomfe/zrender/blob/master/src/core/env.js#L149


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


[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646397195


   @plainheart 
   window.matchMedia("(pointer: coarse)").matches的返回结果是false


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


[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc edited a comment on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475


   @plainheart 
   您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片(图片通过邮件发送的),感谢。
   增加了 "ontouchstart" in window的验证结果,结果为false(图片通过邮件发送的)


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


[GitHub] [incubator-echarts] tikeyc removed a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc removed a comment on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646394047


   增加了 "ontouchstart" in window的验证结果,结果为false


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


[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc edited a comment on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646386600


   @plainheart 
        您好。使用可以触屏的大屏显示器,在控制台打印了结果:
   window.DocumentTouch && document instanceof DocumentTouch 的结果是:undefined
   window 对象中是否有 ontouchstart 函数的结果是:false
   


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


[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646386600


   @plainheart 
        您好。使用可以触屏的大屏显示器,在控制台打印了window.DocumentTouch && document instanceof DocumentTouch 的结果,以及window 对象中是否有 ontouchstart 函数。
   得出的结果都是undefined
   


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


[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646394047


   增加了 "ontouchstart" in window的验证结果,结果为false


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


[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-647217829


   @plainheart 
   您好,请问有好的解决方案吗?


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


[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-647221129


   抱歉暂时没有,不确定是否能够修复,这可能需要进行讨论,目前如果确定设备支持触屏,还是建议先手动设置 `touchEventsSupported`为`true`。


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


[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc edited a comment on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475


   您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片(图片通过邮件发送的),感谢。
   增加了 "ontouchstart" in window的验证结果,结果为false(图片通过邮件发送的)


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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645902251


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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


[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645986599


   @tikeyc 麻烦您使用所拥有的触屏或大屏显示器帮助验证以下问题:
   - `window.DocumentTouch && document instanceof DocumentTouch` 的结果是否为 `true`
   - `window` 对象中是否有 `ontouchstart` 函数
   
   通过[StackOverflow](https://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript)上的讨论,似乎很难有一种能适用于各种情况的方案。


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


[GitHub] [incubator-echarts] tikeyc commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475


   您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片。感谢。


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


[GitHub] [incubator-echarts] tikeyc edited a comment on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
tikeyc edited a comment on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646387475


   您好,在大屏触摸显示器上验证了,输出结果都是undefined见附件的图片(图片通过邮件发送的),感谢。


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


[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-646394989


   @tikeyc `window.matchMedia("(pointer: coarse)").matches`的返回结果是否为`true`?


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


[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-645973348


   > 但更新到echarts4.8.0版本.无法拖动的问题依然存在。只有去修改源码将touchEventsSupported的值强制设置成true后问题便得到了解决。
   
   如果按照你说的将`touchEventsSupported`设置为`true`即可解决该问题,那么很有可能是在判断环境是否支持触摸事件的逻辑上存在bug,导致echarts认为当前环境不支持`touchEvents`,有待验证。


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


[GitHub] [incubator-echarts] plainheart commented on issue #12823: 在触屏的电脑或大屏显示器上无法拖动节点

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12823:
URL: https://github.com/apache/incubator-echarts/issues/12823#issuecomment-650902027


   @tikeyc Hi~ 能否告知下使用的浏览器以及浏览器的 `navigator.userAgent` ?


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