timdream / wordcloud2.js

Tag cloud/Wordle presentation on 2D canvas or HTML
https://wordcloud2-js.timdream.org/
MIT License
2.36k stars 511 forks source link

Hover - Uncaught TypeError #69

Closed TommasoBelluzzo closed 4 months ago

TommasoBelluzzo commented 8 years ago

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

timdream commented 8 years ago

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.

AbhiThakare commented 6 years ago

Hi,

Is there any workaround for this?

AbhiThakare commented 6 years ago

Hi,

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

Thanks Abhi