gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 279 forks source link

Hovering over sparkline charts can sometimes not show the tooltips on IE11 #144

Open She-Ravolo opened 9 years ago

She-Ravolo commented 9 years ago

This happens only when I use IE11- when I hover over the sparkline charts, it sometimes not show the tooltip. I've tried to hover over the chart from the left/right side and it doesn't seem to affect in any way.

chillyistkult commented 8 years ago

I can reproduce this behaviour on Chrome 44.0.2403. If you move your mouse from the left side into the chart it's not working. From all other directions (bottom-up, top-down, right-left) it's working properly.

bi-kai commented 7 years ago

@chillyistkult same to me, any idea to solve it? examples on official site, also has this problem.

mvogelito commented 1 month ago

I'm having this issue as well (many years later). Just adding an observation from simple poking and prodding, for what it's worth: In MouseHandler there is a function updateDisplay and at the very end of the function are the lines:

if (result === null) {
    this.mouseleave();
}

If I comment those lines out, that fixes this issue of tooltips not appearing consistently (Win desktop Chrome 125). YMMV, I haven't dug in to see what this might break. But the unbind in mouseleave is also called in mouseenter, so I'm hoping the effect is minimal (at least for my use-case).