File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -483,13 +483,13 @@ proto.draw = function() {
483
483
484
484
if ( nextSelection && (
485
485
! this . lastPickResult ||
486
- this . lastPickResult . trace !== nextSelection . trace ||
486
+ this . lastPickResult . traceUid !== nextSelection . trace . uid ||
487
487
this . lastPickResult . dataCoord [ 0 ] !== nextSelection . dataCoord [ 0 ] ||
488
488
this . lastPickResult . dataCoord [ 1 ] !== nextSelection . dataCoord [ 1 ] )
489
489
) {
490
490
var selection = nextSelection ;
491
491
this . lastPickResult = {
492
- trace : nextSelection . trace , // could we just retain/compare the trace uid?
492
+ traceUid : nextSelection . trace ? nextSelection . trace . uid : null ,
493
493
dataCoord : nextSelection . dataCoord . slice ( )
494
494
} ;
495
495
this . spikes . update ( { center : result . dataCoord } ) ;
You can’t perform that action at this time.
0 commit comments