highslide-software/highcharts.com — pull request #2421 by anutron (2013-11-01 04:41:25+00:00)
Title: Prevent tooltips from being visible when mouse exits the plot area.

this check (highcharts current master's version) only resets the tooltip if your mouse is over a series and you leave the plot area OR you leave the entire container of the chart. The problem is that if you move up your mouse leaves the series (the colored column or whatever) and enters the space between that and our tooltip. When it leaves the plot area (where our tip is) there's no longer a hoverSeries defined, because you aren't on one. So the current conditional breaks and our tooltip remains. I swapped this for !chart.tooltip.isHidden as this conditional is run on mousemove (whether you're in the chart or not) and a boolean check here makes it relatively inexpensive.

An optimization to consider there is to remove this mousemove event from the document when your mouse leaves the chart (not in this pull).