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

Listen for drag-and-drop events on the Dropzone element rather than document #793

Merged
merged 2 commits into from
May 25, 2022

Conversation

gilest
Copy link
Collaborator

@gilest gilest commented May 25, 2022

Think I was able to reproduce the reported issue using a regression test.

Refactored DragListener to attach and remove all events from the Dropzone element itself.

In the pre-Octane design there was a global DragListener. This would be more efficient for a page with many Dropzones and could be addressed in a further refactor. For now though, this does not change performance, and hopefully fixes the reported issue (Fixes #446).

Also replaced some this context binding with the action decorator as I'm not sure the event listener removal was using the same functions as the event listener addition.

@gilest gilest added the bug label May 25, 2022
@gilest gilest merged commit 55198a6 into master May 25, 2022
@gilest gilest deleted the fix/document-events branch May 25, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dragzone swallows all drag events anywhere in the document body
1 participant