File tree 1 file changed +5
-3
lines changed
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) {
726
726
}
727
727
728
728
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 ) ;
730
731
} else {
731
732
r0 = null ;
732
733
r1 = null ;
@@ -784,9 +785,10 @@ proto.updateMainDrag = function(fullLayout, polarLayout) {
784
785
}
785
786
786
787
path1 = path0 + _pathSectorClosed ( r1 ) + _pathSectorClosed ( r0 ) ;
788
+ // keep 'starting' angle here too
787
789
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 ] )
790
792
] . join ( ' ' ) ;
791
793
} else {
792
794
r0 = null ;
You can’t perform that action at this time.
0 commit comments