Skip to content

Commit

Permalink
Merge pull request #14 from vicdashkov/fit/tooltip-firefox
Browse files Browse the repository at this point in the history
added fix to support tooltip on firefox
  • Loading branch information
weihanchen committed Apr 15, 2018
2 parents 97d5bfd + 783ebca commit 66464ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular-word-cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}).attr('opacity', 1);
}
})
.on('mousemove', function () { return tooltip.style('top', (event.pageY - 10) + 'px').style('left', (event.pageX + 10) + 'px'); })
.on('mousemove', function () { return tooltip.style('top', (d3.event.pageY - 10) + 'px').style('left', (d3.event.pageX + 10) + 'px'); })
.style('font-size', function (d) {
return d.size + 'px';
})
Expand Down

0 comments on commit 66464ea

Please sign in to comment.