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/01/13 10:55:01 UTC

[GitHub] [incubator-echarts] Ovilia commented on a change in pull request #12001: fix(dataZoom): avoid freezing when range 'start' equals 'end' #11175

Ovilia commented on a change in pull request #12001: fix(dataZoom): avoid freezing when range 'start' equals 'end' #11175
URL: https://github.com/apache/incubator-echarts/pull/12001#discussion_r365742981
 
 

 ##########
 File path: src/component/dataZoom/InsideZoomView.js
 ##########
 @@ -114,11 +114,15 @@ var roamHandlers = {
         var directionInfo = getDirectionInfo[coordSysName](
             null, [e.originX, e.originY], axisModel, controller, coordInfo
         );
+
+        // diff=0 will freezing dataZoom
+        var rangeDiff = (range[1] - range[0]) || 0.1;
 
 Review comment:
   I don't think it's a good idea to use an arbitrary number for the default range.
   Maybe we could provide an option for the user and set the default value to be 0.1.

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