File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,11 @@ proto.draw = function() {
487
487
this . lastPickResult . dataCoord [ 0 ] !== nextSelection . dataCoord [ 0 ] ||
488
488
this . lastPickResult . dataCoord [ 1 ] !== nextSelection . dataCoord [ 1 ] )
489
489
) {
490
- var selection = this . lastPickResult = nextSelection ;
490
+ var selection = nextSelection ;
491
+ this . lastPickResult = {
492
+ trace : nextSelection . trace , // could we just retain/compare the trace uid?
493
+ dataCoord : nextSelection . dataCoord . slice ( )
494
+ } ;
491
495
this . spikes . update ( { center : result . dataCoord } ) ;
492
496
493
497
selection . screenCoord = [
@@ -523,8 +527,6 @@ proto.draw = function() {
523
527
} , {
524
528
container : this . svgContainer
525
529
} ) ;
526
-
527
- this . lastPickResult = { dataCoord : result . dataCoord } ;
528
530
}
529
531
}
530
532
else if ( ! result && this . lastPickResult ) {
You can’t perform that action at this time.
0 commit comments