Skip to content

Commit b203a25

Browse files
Lexachocarchmoj
andauthored
Update src/plots/ternary/ternary.js
Co-authored-by: Mojtaba Samimi <33888540+archmoj@users.noreply.github.com>
1 parent 06b7148 commit b203a25

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/plots/ternary/ternary.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ proto.makeFramework = function(fullLayout) {
101101
proto.updateFx = function(dragmode) {
102102
var toplevel = this.plotContainer.selectAll('g.toplevel');
103103

104-
if(dragmode === 'pan') {
105-
toplevel.style('cursor', 'move');
106-
} else {
107-
toplevel.style('cursor', 'crosshair');
108-
}
104+
toplevel.style('cursor', dragmode === 'pan' ? 'move' : 'crosshair');
109105
};
110106

111107
proto.updateLayers = function(ternaryLayout) {

0 commit comments

Comments
 (0)