Skip to content

Commit a48213c

Browse files
authored
Update index.js
update as suggusted
1 parent e8de4c9 commit a48213c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/plots/ternary/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,5 @@ exports.updateFx = function(gd) {
8383
var dragmode = fullLayout.dragmode;
8484
var toplevel = d3.select(gd).selectAll('g.toplevel');
8585

86-
if(dragmode === 'pan') {
87-
toplevel.style('cursor', 'move');
88-
} else {
89-
toplevel.style('cursor', 'crosshair');
90-
}
86+
toplevel.style('cursor', dragmode === 'pan' ? 'move' : 'crosshair');
9187
};

0 commit comments

Comments
 (0)