Skip to content

Commit 95a81fc

Browse files
refactor polar fix
Co-authored-by: Alex Johnson <[email protected]>
1 parent 9cc0a15 commit 95a81fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/plots/polar/polar.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1196,11 +1196,8 @@ proto.updateAngularDrag = function(fullLayout) {
11961196
var fullLayoutNow = _this.gd._fullLayout;
11971197
var polarLayoutNow = fullLayoutNow[_this.id];
11981198

1199-
dx *= fullLayout._inverseScaleX;
1200-
dy *= fullLayout._inverseScaleY;
1201-
1202-
var x1 = x0 + dx;
1203-
var y1 = y0 + dy;
1199+
var x1 = x0 + dx * fullLayout._inverseScaleX;
1200+
var y1 = y0 + dy * fullLayout._inverseScaleY;
12041201
var a1 = xy2a(x1, y1);
12051202
var da = rad2deg(a1 - a0);
12061203
rot1 = rot0 + da;

0 commit comments

Comments
 (0)