We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 642c034 commit cc9b695Copy full SHA for cc9b695
src/plots/gl3d/scene.js
@@ -332,8 +332,6 @@ proto.render = function() {
332
return Axes.hoverLabelText(ax, val, hoverformat);
333
}
334
335
- var oldEventData;
336
-
337
if(lastPicked !== null) {
338
var pdata = project(scene.glplot.cameraParams, selection.dataCoordinate);
339
trace = lastPicked.data;
@@ -456,10 +454,11 @@ proto.render = function() {
456
454
gd.emit('plotly_hover', eventData);
457
455
458
459
- oldEventData = eventData;
+ this.oldEventData = eventData;
460
} else {
461
Fx.loneUnhover(svgContainer);
462
- gd.emit('plotly_unhover', oldEventData);
+ gd.emit('plotly_unhover', this.oldEventData);
+ this.oldEventData = undefined;
463
464
465
scene.drawAnnotations(scene);
0 commit comments