Skip to content

after panning, a hover label appear above data point close to start position #4570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
antoinerg opened this issue Feb 11, 2020 · 2 comments
Labels
bug something broken P3 backlog

Comments

@antoinerg
Copy link
Contributor

Originally discovered and reported by @jonmmease in #4377, I think this deserves an issue of its own considering it affects many trace types (at least scatter, image, heatmap and probably many more).

When a panning operation is over (ie. mouse up), a hover label will appear above the data point closest to the position of the mouse when the pan operation was initiated (ie. mouse down).

@antoinerg antoinerg added the bug something broken label Feb 11, 2020
@antoinerg antoinerg changed the title after panning, an hover label appear above data point close to start position after panning, a hover label appear above data point close to start position Feb 11, 2020
@antoinerg
Copy link
Contributor Author

@etpinard I think you mentioned you had an idea on how to fix this one. Can you comment on it?

@etpinard
Copy link
Contributor

If I had to bet, I think this has to do with:

plotly.js/src/plots/plots.js

Lines 3227 to 3231 in 31a23fe

plots.rehover = function(gd) {
if(gd._fullLayout._rehover) {
gd._fullLayout._rehover();
}
};

gd._fullLayout._rehover = function() {
if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {
Fx.hover(gd, evt, subplot);
}
};

@gvwilson gvwilson self-assigned this Jun 14, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added the P3 backlog label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants