Skip to content

Commit

Permalink
Fix so tooltip will move relative to mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
anhcao142 committed May 20, 2016
1 parent fe97782 commit 9117c8d
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 9117c8d

Please sign in to comment.