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:
gets the height and the width of an empty elem or
take into consideration the width and height of the tooltip of previous appearance for the previous elem hovered,
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.