Skip to content

Commit

Permalink
Merge pull request #142 from boylove142/master
Browse files Browse the repository at this point in the history
Fix so tooltip will move relative to mouse
  • Loading branch information
Kris Urbas authored Jul 26, 2016
2 parents fe97782 + 9117c8d commit 6217739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.flot.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
return;

$tip.html(tipText);
plot.setTooltipPosition({ x: position.pageX, y: position.pageY });
plot.setTooltipPosition({ x: that.tipPosition.x, y: that.tipPosition.y });
$tip.css({
left: that.tipPosition.x + that.tooltipOptions.shifts.x,
top: that.tipPosition.y + that.tooltipOptions.shifts.y
Expand Down

0 comments on commit 6217739

Please sign in to comment.