Skip to content

Commit 92ae900

Browse files
committed
apply suggestions
1 parent b1fccb9 commit 92ae900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/polar/polar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ proto.updateHoverAndMainDrag = function(fullLayout) {
800800
var scaleX;
801801
var scaleY;
802802

803-
var mainDrag = dragBox.makeDragger(layers, 'path', 'maindrag', 'crosshair');
803+
var mainDrag = dragBox.makeDragger(layers, 'path', 'maindrag', fullLayout.dragmode === false ? 'none' : 'crosshair');
804804

805805
d3.select(mainDrag)
806806
.attr('d', _this.pathSubplot())
@@ -1295,7 +1295,7 @@ proto.updateAngularDrag = function(fullLayout) {
12951295
var cyy = _this.cyy;
12961296
var dbs = constants.angularDragBoxSize;
12971297

1298-
var angularDrag = dragBox.makeDragger(layers, 'path', 'angulardrag', 'move');
1298+
var angularDrag = dragBox.makeDragger(layers, 'path', 'angulardrag', fullLayout.dragmode === false ? 'none' : 'move');
12991299
var dragOpts = {element: angularDrag, gd: gd};
13001300

13011301
if(fullLayout.dragmode === false) {

0 commit comments

Comments
 (0)