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 2021/11/24 07:06:38 UTC

[GitHub] [echarts] grigiada opened a new issue #16103: zoom / datazoom in touchscreen

grigiada opened a new issue #16103:
URL: https://github.com/apache/echarts/issues/16103


   ### Version
   5.2.2
   
   ### Steps to reproduce
   It is possible to reproduce the problem with any example graphic also present on your site.
   
   ### What is expected?
   I cannot change the zoom area using a normal touchscreen connected to a Windows PC. The same function on phone and tablet works fine.
   It is possible to reproduce the problem with any example graphic also present on your site.
   
   ### What is actually happening?
   I cannot change the zoom area using a normal touchscreen connected to a Windows PC.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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.

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


[GitHub] [echarts] grigiada commented on issue #16103: zoom / datazoom in touchscreen

Posted by GitBox <gi...@apache.org>.
grigiada commented on issue #16103:
URL: https://github.com/apache/echarts/issues/16103#issuecomment-979724403


   Thank you for your reply.
   No particular device is needed to test the malfunction but any touch
   monitor connected to a windows pc.
   I seem to have solved this problem by rewriting the function that
   recognizes the touch capabilities of the monitor.
   
   In echarts.js I substitute this condition
        env.touchEventsSupported = 'ontouchstart' in window && !browser.ie &&
   !browser.edge;
   with this one:
        env.touchEventsSupported = detectTouchscreen();
   
   where the function detectTouchscreen() is implemented as follows:
   
   function detectTouchscreen() {
           var result = false;
           if (window.PointerEvent && ('maxTouchPoints' in navigator)) {
               // if Pointer Events are supported, just check maxTouchPoints
               if (navigator.maxTouchPoints > 0) {
                   result = true;
               }
    } else {
               // no Pointer Events...
               if (window.matchMedia &&
   window.matchMedia("(any-pointer:coarse)").matches) {
                   // check for any-pointer:coarse which mostly means
   touchscreen
                   result = true;
               } else if (window.TouchEvent || ('ontouchstart' in window)) {
                   // last resort - check for exposed touch events API / event
   handler
                   result = true;
               }
           }
           return result;
       }
   
   I hope it will be useful to improve the functioning of your library.
   
   Reading the forums I am not the only one with this problem and it would be
   very useful if the next release had this function.
   
   Have a good day.
   
   Giada
   
   Il giorno ven 26 nov 2021 alle ore 06:03 Yi Shen ***@***.***>
   ha scritto:
   
   > @grigiada <https://github.com/grigiada> I'm afraid we don't have the
   > specifc device to do the test. Do you mind taking a deep look at it and
   > report us with more detail?
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/echarts/issues/16103#issuecomment-979698876>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AWUODFRJ36CT3HEVBHB5AODUN4IJNANCNFSM5IVJSMOA>
   > .
   > Triage notifications on the go with GitHub Mobile for iOS
   > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
   > or Android
   > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
   >
   >
   


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #16103: zoom / datazoom in touchscreen

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


   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 it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](https://echarts.apache.org/api.html) and [chart option](https://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 question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/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.

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


[GitHub] [echarts] pissang commented on issue #16103: zoom / datazoom in touchscreen

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #16103:
URL: https://github.com/apache/echarts/issues/16103#issuecomment-979698876


   @grigiada I'm afraid we don't have the specifc device to do the test. Do you mind taking a deep look at it and report us with more detail?


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