wordcloud2.js icon indicating copy to clipboard operation
wordcloud2.js copied to clipboard

Hover - Uncaught TypeError

Open TommasoBelluzzo opened this issue 8 years ago • 3 comments

Whenever I hover an empty area of a wordcloud canvas, normally on the left side and very close to the border, I keep on receiving this error:

Uncaught TypeError: Cannot read property '[ANY NUMBER]' of undefined getInfoGridFromMouseTouchEvent @ wordcloud2.min.js wordcloudhover @ wordcloud2.min.js

TommasoBelluzzo avatar Feb 28 '16 04:02 TommasoBelluzzo

This is a bug due to the fact the grid does not cover the entire canvas. getInfoGridFromMouseTouchEvent should not throw but return a undefined info struct instead.

It's harmless though as we did not mistakenly trigger hover callback.

timdream avatar Feb 29 '16 03:02 timdream

Hi,

Is there any workaround for this?

AbhiThakare avatar May 21 '18 15:05 AbhiThakare

Hi,

I am still facing this issue on hover and keep receiving many times.

Thanks Abhi

AbhiThakare avatar May 25 '18 15:05 AbhiThakare