From 783ebca714e4b85f69c9080c6ffc714c854ac752 Mon Sep 17 00:00:00 2001 From: viktor dashkov Date: Sun, 15 Apr 2018 10:19:57 -0700 Subject: [PATCH] added fix to support tooltip on firefox --- src/angular-word-cloud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/angular-word-cloud.js b/src/angular-word-cloud.js index 29f3e7b..6e10382 100644 --- a/src/angular-word-cloud.js +++ b/src/angular-word-cloud.js @@ -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'; })