File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1197,6 +1197,9 @@ proto.updateAngularDrag = function(fullLayout) {
1197
1197
var fullLayoutNow = _this . gd . _fullLayout ;
1198
1198
var polarLayoutNow = fullLayoutNow [ _this . id ] ;
1199
1199
1200
+ dx *= fullLayout . _inverseScaleX ;
1201
+ dy *= fullLayout . _inverseScaleY ;
1202
+
1200
1203
var x1 = x0 + dx ;
1201
1204
var y1 = y0 + dy ;
1202
1205
var a1 = xy2a ( x1 , y1 ) ;
@@ -1291,6 +1294,11 @@ proto.updateAngularDrag = function(fullLayout) {
1291
1294
var bbox = angularDrag . getBoundingClientRect ( ) ;
1292
1295
x0 = startX - bbox . left ;
1293
1296
y0 = startY - bbox . top ;
1297
+
1298
+ var transformedCoords = Lib . apply3DTransform ( fullLayout . _inverseTransform ) ( x0 , y0 ) ;
1299
+ x0 = transformedCoords [ 0 ] ;
1300
+ y0 = transformedCoords [ 1 ] ;
1301
+
1294
1302
a0 = xy2a ( x0 , y0 ) ;
1295
1303
1296
1304
dragOpts . moveFn = moveFn ;
You can’t perform that action at this time.
0 commit comments