Skip to content

Commit

Permalink
added fix to support tooltip on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor dashkov authored and viktor dashkov committed Apr 15, 2018
1 parent 97d5bfd commit 783ebca
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 783ebca

Please sign in to comment.