Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When you drag a javascript gif it's freezing and lagging with the extension enabled #3001

Open
3 tasks done
returnworld opened this issue Oct 14, 2024 · 2 comments
Open
3 tasks done
Assignees

Comments

@returnworld
Copy link

returnworld commented Oct 14, 2024

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

  • I am running the latest version
  • I checked the knowledge base and found no answer
  • I checked to make sure that this issue has not already been filed

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
Copy link

@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
Copy link
Author

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.

@adguard-bot adguard-bot changed the title freeze drag and drop javascript When you drag a javascript gif it's freezing and lagging with the extension enabled Oct 24, 2024
@adguard-bot adguard-bot assigned maximtop and unassigned windwak3r Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants