neveldo / jQuery-Mapael

jQuery plugin based on raphael.js that allows you to display dynamic vector maps
https://www.vincentbroute.fr/mapael/
MIT License
1.01k stars 196 forks source link

Bad position of the tooltip #407

Open elisei1000 opened 5 years ago

elisei1000 commented 5 years ago

The tooltip sometimes overflow bounds or is wrong positioned because the elemHover is handled before the elemEnter and so, the computation position of the tooltip:

The first position is bad, but it will be corrected on the later moves of the mouse. https://jsfiddle.net/yhqp4nj7/10/

On the JSFiddle try hovering in an alternative way the area of Russia and the pinned point.