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

Drag and drop: 'dragleave' event fires when mouse still over node. #930

Open
liesahead opened this issue Nov 17, 2021 · 0 comments
Open

Comments

@liesahead
Copy link

Minimal reproduction of the bug/regression with instructions:

When moving mouse over node in drag mode sometimes dragleave fires (and it is followed by immediate 'dragover' again) which is causing classname is-dragging-over to reapply. And as we have background color change applied for is-dragging-over our node is blinking on drag which looks buggy. Here is a gif attached.

node_blinking_on_drag

Expected behavior:

'is-dragging-over' is not reapplied when still over node.

Versions of Angular Tree Component, Angular, Node, affected browser(s) and operating system(s):

"@angular/animations": "^12.2.11",
"@angular/cdk": "^12.2.11",
"@angular/common": "^12.2.11",
"@angular/compiler": "^12.2.11",
"@angular/core": "^12.2.11",
"@angular/flex-layout": "12.0.0-beta.35",
"@angular/forms": "^12.2.11",
"@angular/material": "^12.2.11",
"@angular/platform-browser": "^12.2.11",
"@angular/platform-browser-dynamic": "^12.2.11",
"@angular/router": "^12.2.11",
"@angularclass/hmr": "^3.0.0",
"@circlon/angular-tree-component": "11.0.4",

Browser: Chrome Version 95.0.4638.69 (Official Build) (64-bit)
OS: Windows 10 latest
Node: v14.17.5

Other information:

Probably could be fixed by #927

I would be willing to submit a PR to fix this issue

[ ] Yes (Assistance will be provided if you need help to submit a pull request)
[X ] No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant