@@ -79,7 +79,7 @@ function sankeyModel(layout, d, traceIndex) {
79
79
}
80
80
}
81
81
82
- graph . nodes . push ( {
82
+ graph . nodes . unshift ( {
83
83
pointNumber : parseInt ( nodePointNumber ) ,
84
84
x0 : groupingNode . x0 ,
85
85
x1 : groupingNode . x1 ,
@@ -474,19 +474,19 @@ function attachPointerEvents(selection, sankey, eventSet) {
474
474
selection
475
475
. on ( '.basic' , null ) // remove any preexisting handlers
476
476
. on ( 'mouseover.basic' , function ( d ) {
477
- if ( ! d . interactionState . dragInProgress ) {
477
+ if ( ! d . interactionState . dragInProgress && ! d . partOfGroup ) {
478
478
eventSet . hover ( this , d , sankey ) ;
479
479
d . interactionState . hovered = [ this , d ] ;
480
480
}
481
481
} )
482
482
. on ( 'mousemove.basic' , function ( d ) {
483
- if ( ! d . interactionState . dragInProgress ) {
483
+ if ( ! d . interactionState . dragInProgress && ! d . partOfGroup ) {
484
484
eventSet . follow ( this , d ) ;
485
485
d . interactionState . hovered = [ this , d ] ;
486
486
}
487
487
} )
488
488
. on ( 'mouseout.basic' , function ( d ) {
489
- if ( ! d . interactionState . dragInProgress ) {
489
+ if ( ! d . interactionState . dragInProgress && ! d . partOfGroup ) {
490
490
eventSet . unhover ( this , d , sankey ) ;
491
491
d . interactionState . hovered = false ;
492
492
}
@@ -496,7 +496,7 @@ function attachPointerEvents(selection, sankey, eventSet) {
496
496
eventSet . unhover ( this , d , sankey ) ;
497
497
d . interactionState . hovered = false ;
498
498
}
499
- if ( ! d . interactionState . dragInProgress ) {
499
+ if ( ! d . interactionState . dragInProgress && ! d . partOfGroup ) {
500
500
eventSet . select ( this , d , sankey ) ;
501
501
}
502
502
} ) ;
0 commit comments