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

Tooltip stickOnContact: true throws error on hover from followPointer: false to true #18693

Closed
eriksoeb opened this issue Mar 18, 2023 · 6 comments · Fixed by #18817
Closed

Comments

@eriksoeb
Copy link

want the tooltip to show information / icon , when mouseover country I want to display country name.

Works almost, for the first few seconds, but fails when doing mouseover / and inspecting tooltips

txt file uploaded must be renamed to html, then open by Chrome

Live demo with steps to reproduce

https://jsfiddle.net/eriksoeberg/z4fr87p5/1/
and
similar: https://jsfiddle.net/BlackLabel/wxgyuk35/

Product version

latest Highmaps

Affected browser(s) Chrome and edge

map.txt

@bm64
Copy link
Member

bm64 commented Mar 19, 2023

Hello @eriksoeb and thanks for reporting the issue.

It looks like the issue is caused by stickOnContact: true. As a workaround you can remove that option or set it to false (default): https://jsfiddle.net/BlackLabel/0xqkrwp2/

@eriksoeb
Copy link
Author

helo @bm64
https://jsfiddle.net/eriksoeberg/z4fr87p5/4/
it just takes a bit longer to reproduce the error, bit mouse over and tooltip, and especially out in the margins, then the error gets back.
btw there is also a support ticket 21408 on this one.

@KacperMadej
Copy link
Contributor

This is not an exclusive Highcharts Maps problem.
Minimal demo: https://jsfiddle.net/BlackLabel/wxgyuk35/2/

With tooltip.stickOnContact: true hover from a series with tooltip.followPointer: true to a series with tooltip.followPointer: false (or not defined).
In the case of the demo attached here: hover from the point to the column -> error in the console.

@KacperMadej KacperMadej changed the title highmap tooltip moseover Tooltip stickOnContact: true throws error on hover from followPointer: false to true Mar 27, 2023
@eriksoeb
Copy link
Author

By setting **_stickOnContakt:fals, in your minimal demo, I basically get the same information, but fewer error mesages. I am currently not sure if stickOnContact have any impact/function..

https://jsfiddle.net/o4t9skw2/

@hubertkozik hubertkozik self-assigned this Apr 12, 2023
@hubertkozik
Copy link
Member

I have prepared a workaround for that issue by overwriting one of the tooltip methods. It is inside the IIFE function. If you want to use it, just copy-paste it into your project and everything should work as intended. A similar solution will be used in HC Core.

Live demo HC Core: https://jsfiddle.net/BlackLabel/9ubg57sq/
Live demo HC Maps: https://jsfiddle.net/BlackLabel/g1atwu9o/

@eriksoeb
Copy link
Author

eriksoeb commented Apr 14, 2023 via email

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

Successfully merging a pull request may close this issue.

5 participants