joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.25k stars 232 forks source link

tooltip triggers mouseout event #102

Closed f-scholer closed 4 years ago

f-scholer commented 6 years ago

I had problems with the tooltip only showing when moving the mouse. It turns out that the tooltip div element itself triggered the mouseout event, The fix is just to prevent the tooltip from getting pointer events:

SmoothieChart.prototype.getTooltipEl = function () { .... this.tooltipEl.style.pointerEvents = 'none'; <--- add this line

drewnoakes commented 6 years ago

Good point. Can you make a PR please?

paccerdk commented 4 years ago

I've made a pull request, took me 1 minute via the github webinterface - however it took me a lot longer to track down the issue ;)