zotero / translators

Zotero Translators
http://www.zotero.org/support/dev/translators
1.3k stars 763 forks source link

IEEE Xplore: Connector translation is rerun every time the cursor leaves and reenters the page #3323

Open adomasven opened 5 months ago

adomasven commented 5 months ago

It is caused by a monitorDOMChanges() line added in #3150 https://github.com/zotero/translators/pull/3150/files#diff-81af869ad57127c637d33a6dcb9090f00f445bf6d1236c4f68075814192397dbR39 by @adam3smith. I'm not sure what it's used for, but any time you leave the mouse cursor from the browser window and return, it causes that element to change and detection to rerun. If we can, we should monitor some other element, or monitor less properties or something.

adam3smith commented 5 months ago

Sorry about that. I'm pretty sure the MonitorsDOM is needed for search results, but I won't have time to look at this for at least a couple of weeks, so would be good if someone else could.

Sent from my phone

On Wed, Jun 19, 2024, 03:45 Adomas Ven @.***> wrote:

It is caused by a monitorDOMChanges() line added in #3150 https://github.com/zotero/translators/pull/3150 https://github.com/zotero/translators/pull/3150/files#diff-81af869ad57127c637d33a6dcb9090f00f445bf6d1236c4f68075814192397dbR39 by @adam3smith https://github.com/adam3smith. I'm not sure what it's used for, but any time you leave the mouse cursor from the browser window and return, it causes that element to change and detection to rerun. If we can, we should monitor some other element, or monitor less properties or something.

— Reply to this email directly, view it on GitHub https://github.com/zotero/translators/issues/3323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7PWXSDWR5RCSOZ3B2TJLZIEZILAVCNFSM6AAAAABJRPWPY6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DCNRQGA2TEMA . You are receiving this because you were mentioned.Message ID: @.***>