@@ -994,13 +994,25 @@ class SliderZoomView extends DataZoomView {
994
994
const viewExtend = this . _getViewExtent ( ) ;
995
995
const percentExtent = [ 0 , 100 ] ;
996
996
997
+ const handleEnds = this . _handleEnds = [ brushShape . x , brushShape . x + brushShape . width ] ;
998
+ const minMaxSpan = this . dataZoomModel . findRepresentativeAxisProxy ( ) . getMinMaxSpan ( ) ;
999
+ // Restrict range.
1000
+ sliderMove (
1001
+ 0 ,
1002
+ handleEnds ,
1003
+ viewExtend ,
1004
+ 0 ,
1005
+ minMaxSpan . minSpan != null
1006
+ ? linearMap ( minMaxSpan . minSpan , percentExtent , viewExtend , true ) : null ,
1007
+ minMaxSpan . maxSpan != null
1008
+ ? linearMap ( minMaxSpan . maxSpan , percentExtent , viewExtend , true ) : null
1009
+ ) ;
1010
+
997
1011
this . _range = asc ( [
998
- linearMap ( brushShape . x , viewExtend , percentExtent , true ) ,
999
- linearMap ( brushShape . x + brushShape . width , viewExtend , percentExtent , true )
1012
+ linearMap ( handleEnds [ 0 ] , viewExtend , percentExtent , true ) ,
1013
+ linearMap ( handleEnds [ 1 ] , viewExtend , percentExtent , true )
1000
1014
] ) ;
1001
1015
1002
- this . _handleEnds = [ brushShape . x , brushShape . x + brushShape . width ] ;
1003
-
1004
1016
this . _updateView ( ) ;
1005
1017
1006
1018
this . _dispatchZoomAction ( false ) ;
0 commit comments