Skip to content

Commit 3a94ebd

Browse files
committed
display handles at 'starting' angle
1 parent ef4b57f commit 3a94ebd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plots/polar/polar.js

+5-3
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)