Skip to content
Advertisement

Tooltip in leaflet.js flickers so users can’t click on link inside it

I am using bindTool tip to create pop up elements with html and links within them

JavaScript

in Custom options I have the following

JavaScript

EDIT – There is flickering when the tooltip is hovered over – it appears to be activating mouseover and mouseout at the same time.

I am working on this project in a glitch project here /

Code – https://glitch.com/edit/#!/leaflet-map-3valleys?path=script.js%3A95%3A0

Resulting map – https://leaflet-map-3valleys.glitch.me/

What should I change to make this correct / consistent?

Advertisement

Answer

Are you sure this is your problem?
After all, clicking on the icon in the popup is practically impossible. This window is flashing so fast that you really need to be the world champion in CS:GO to shoot the click 😉

Below is a gif of what it looks like. It doesn’t reflect the blink speed because it’s an optimized GIF, but I assure you the problem is that you are using mouseover and mouseout at the same time.

enter image description here

— EDIT —

It no longer blinks like crazy, there is only one blink left, but you will solve this problem yourself 😉

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement