AdguardTeam / AdguardBrowserExtension

AdGuard browser extension
https://adguard.com/
GNU General Public License v3.0
3.07k stars 330 forks source link

freeze drag and drop javascript #3001

Open returnworld opened 1 week ago

returnworld commented 1 week ago

Please answer the following questions for yourself before submitting a question.

Ask a question

I created a simple greeting card website on githab

example - https://returnworld.github.io/happy-birthday/

repository - https://github.com/returnworld/happy-birthday

I'm convinced that the problem is in the handling of event listeners in simple drag and drop code source - https://github.com/returnworld/happy-birthday/blob/main/src/images.js

The easiest way to verify this is to delete objects using developer tools:

<div class="imgContainer">
<img src="..." class="dance2">
windwak3r commented 6 days ago

@returnworld, hello! I couldn't reproduce the problem with freezing. What version of the AdGuard extension are you using?

Please explain step by step what to do right after installing the extension.

returnworld commented 3 days ago

I am using the latest version AdGuard extension 5.0.138 and latest version Chrome. Try dragging the cube-stars or dance gif, with the extension on and off. When the extension is enabled, with protection enabled, dragging is very freeze. I think this is due to excessive auditing of event listeners, perhaps the hook is constantly triggered by the mousemove event, but these are just my guesses.