You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right. We need to clear the hover labels when starting a selection.
bingo. It's nice there because that clears hover labels on ANY drag event... select, zoom, pan... but I guess the solution would be to wait until dragged is true (which gets plugged into gd._dragged, though at this point that's only used within the fx.dragElement closure so could and should be ditched in favor of a local var). I suppose either we could say hover effects should always clear when you're dragging, no matter what it is you're dragging... then we could put the fx.unhover call right there in fx.dragElement next to gd._dragged = true;. If you don't feel comfortable with that in all cases, we could add an options.draggedFn (these should really be called options.onDragged etc shouldn't they...) to be called there.
I think this is OK - fx.unhover works fine when there's no hover to begin with, and in all of those cases if for whatever reason there DID happen to be some hovertext that didn't get cleared, it would be nice to do so!
I'd vote for clearing all hover effects upon dragged. I don't see the need to add logic for annotations, legend and colorbar dragging - at least for now.
Activity
etpinard commentedon Jan 11, 2016
Bug confirmed (for all traces but pies, it looks like). Working on a fix now.
etpinard commentedon Jan 11, 2016
Click events are working in
v1.3.1http://cdn.plot.ly/plotly-1.3.1.min.jsetpinard commentedon Jan 11, 2016
@alexcjohnson commenting out fx.unhover in the dragBox definition makes click events work again.
Why did you put this in b1a1c24 ?
etpinard commentedon Jan 11, 2016
Right. We need to clear the hover labels when starting a selection. Let's see if there's a way to make that happen on click events.
alexcjohnson commentedon Jan 11, 2016
Ah, nuts.
bingo. It's nice there because that clears hover labels on ANY drag event... select, zoom, pan... but I guess the solution would be to wait until
draggedistrue(which gets plugged intogd._dragged, though at this point that's only used within thefx.dragElementclosure so could and should be ditched in favor of a local var). I suppose either we could say hover effects should always clear when you're dragging, no matter what it is you're dragging... then we could put thefx.unhovercall right there infx.dragElementnext togd._dragged = true;. If you don't feel comfortable with that in all cases, we could add anoptions.draggedFn(these should really be calledoptions.onDraggedetc shouldn't they...) to be called there.etpinard commentedon Jan 11, 2016
@alexcjohnson Could you give me examples of things that can be dragged ?
alexcjohnson commentedon Jan 11, 2016
alexcjohnson commentedon Jan 11, 2016
I think this is OK -
fx.unhoverworks fine when there's no hover to begin with, and in all of those cases if for whatever reason there DID happen to be some hovertext that didn't get cleared, it would be nice to do so!move fx.unhover call to onMove handler
etpinard commentedon Jan 11, 2016
@alexcjohnson thanks.
I'd vote for clearing all hover effects upon dragged. I don't see the need to add logic for annotations, legend and colorbar dragging - at least for now.