Skip to content
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

Hover failing on mouse move #5491

Closed
neo87cs opened this issue Jul 15, 2016 · 11 comments
Closed

Hover failing on mouse move #5491

neo87cs opened this issue Jul 15, 2016 · 11 comments
Assignees

Comments

@neo87cs
Copy link

neo87cs commented Jul 15, 2016

Hover should be activated all the times the mouse pass trought a point but, with sticky tracking enabled or disabled, but if the mouse pointer is moving slowly near a point, the graph begin to lost the hover effect. This behaviour affect even the point listener, because while the hover is lost, click will not work to open the tooltip

A simple fiddle (i found it over internet) will demonstrate what i am meaning http://jsfiddle.net/neo87cs/vh2uer6n/

The use case we are using is the same: disabled default tooltip and it will be shown only when a point is clicked.

@oysteinmoseng
Copy link
Member

Thank you for reporting.

The behavior I'm seeing is that hovering over the same point twice fails when tooltip is disabled, and stickyTracking is off. Is this what you are referring to?

http://jsfiddle.net/whutocct/

@neo87cs
Copy link
Author

neo87cs commented Jul 15, 2016

Thanks for your fast reply and sorry for my worst english. Yes, you got the point, the log show how Highcharts is loosing mouse tracking over points

@pawelfus
Copy link
Contributor

Workaround:

Clear chart.pointer.prevKDPoint in mouseOut event, for example: http://jsfiddle.net/vh2uer6n/2/

@neo87cs
Copy link
Author

neo87cs commented Jul 15, 2016

The workaround seems to work pretty good, but sometimes can be noticed some little bad behaviors. I tried to use workaround even in Point->MouseOut listener, but i got a big regression with

@pawelfus
Copy link
Contributor

@neo87cs - you message was cut, could you update your post? Anyway, point.events.mouseOut works for me too: http://jsfiddle.net/vh2uer6n/5/ (after small modification of course).

@pawelfus
Copy link
Contributor

It should be fixed in 5.0.0 version: http://jsfiddle.net/e0m1pgLh/ - @neo87cs could you confirm it also works for you?

@Avuthless
Copy link

Avuthless commented Feb 23, 2017

This issue is still present. Can be seen in last fiddle provided by @pawelfus

@pawelfus
Copy link
Contributor

Thanks for pointing this out! It used to work in 5.0.0: http://jsfiddle.net/e0m1pgLh/2/

@Avuthless
Copy link

Yes i can confirm that in version 5.0.0 it was OK

@Avuthless
Copy link

Few notes: If you hover between different points it is OK. Also if you hover outside the graph area before coming back to your last hovered point it is also OK.

@KacperMadej
Copy link

Seems to be working since version 5.0.8 - http://jsfiddle.net/e0m1pgLh/3/
and is working in the current (5.0.10) - http://jsfiddle.net/e0m1pgLh/4/

Please reopen in case of regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants