@@ -30,6 +30,7 @@ function Ternary(options, fullLayout) {
3030 this . graphDiv = options . graphDiv ;
3131 this . init ( fullLayout ) ;
3232 this . makeFramework ( fullLayout ) ;
33+ this . updateFx ( fullLayout ) ;
3334
3435 // unfortunately, we have to keep track of some axis tick settings
3536 // as ternary subplots do not implement the 'ticks' editType
@@ -67,7 +68,6 @@ proto.plot = function(ternaryCalcData, fullLayout) {
6768
6869 _this . updateLayers ( ternaryLayout ) ;
6970 _this . adjustLayout ( ternaryLayout , graphSize ) ;
70- _this . updateFx ( fullLayout . dragmode ) ;
7171 Plots . generalUpdatePerTraceModule ( _this . graphDiv , _this , ternaryCalcData , ternaryLayout ) ;
7272 _this . layers . plotbg . select ( 'path' ) . call ( Color . fill , ternaryLayout . bgcolor ) ;
7373} ;
@@ -98,10 +98,10 @@ proto.makeFramework = function(fullLayout) {
9898 Drawing . setClipUrl ( _this . layers . grids , clipId , gd ) ;
9999} ;
100100
101- proto . updateFx = function ( dragmode ) {
102- var toplevel = this . plotContainer . selectAll ( 'g.toplevel' ) ;
103-
104- toplevel . style ( 'cursor' , dragmode === 'pan' ? 'move' : 'crosshair' ) ;
101+ proto . updateFx = function ( fullLayout ) {
102+ fullLayout . _ternarylayer
103+ . selectAll ( 'g.toplevel' )
104+ . style ( 'cursor' , fullLayout . dragmode === 'pan' ? 'move' : 'crosshair' ) ;
105105} ;
106106
107107proto . updateLayers = function ( ternaryLayout ) {
0 commit comments