PabloRomanH / zhongzhong

Chrome extension that translates Chinese words when hovering on them.
https://chrome.google.com/webstore/detail/zhongzhong-an-improved-ch/dggcgdjndddfmcfoipccicfoajmciacf
34 stars 14 forks source link

Possible bug inherited from Zhongwen #27

Closed PabloRomanH closed 6 years ago

PabloRomanH commented 6 years ago

Apparently this happens with Zhongwen. Check if it happens to us:

Sometimes when I have the extension off the sites I visit generate the following error on every mouse move event:

Uncaught TypeError: Cannot read property 'clientX' of undefined
at Object._onMouseMove (content.js:813)
at HTMLDocument.onMouseMove (content.js:781)

Line 813 is the following:
if (tdata.clientX && tdata.clientY) ...

tdata is assigned on line 784:
var tdata = window.zhongwen;
PabloRomanH commented 6 years ago

Can't reproduce.