File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,8 @@ proto.updateMainDrag = function(fullLayout, polarLayout) {
726726 }
727727
728728 path1 = path0 + _pathSectorClosed ( r1 ) + _pathSectorClosed ( r0 ) ;
729- cpath = pathCorner ( r0 , a0 ) + pathCorner ( r1 , a1 ) ;
729+ // keep 'starting' angle
730+ cpath = pathCorner ( r0 , a0 ) + pathCorner ( r1 , a0 ) ;
730731 } else {
731732 r0 = null ;
732733 r1 = null ;
@@ -784,9 +785,10 @@ proto.updateMainDrag = function(fullLayout, polarLayout) {
784785 }
785786
786787 path1 = path0 + _pathSectorClosed ( r1 ) + _pathSectorClosed ( r0 ) ;
788+ // keep 'starting' angle here too
787789 cpath = [
788- pathCornerForPolygons ( r0 , vangles1 [ 0 ] , vangles1 [ 1 ] ) ,
789- pathCornerForPolygons ( r1 , vangles1 [ 0 ] , vangles1 [ 1 ] )
790+ pathCornerForPolygons ( r0 , vangles0 [ 0 ] , vangles0 [ 1 ] ) ,
791+ pathCornerForPolygons ( r1 , vangles0 [ 0 ] , vangles0 [ 1 ] )
790792 ] . join ( ' ' ) ;
791793 } else {
792794 r0 = null ;
You can’t perform that action at this time.
0 commit comments