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

Cleanup after drag and drop #2481

Merged
merged 2 commits into from
Sep 27, 2022
Merged

Cleanup after drag and drop #2481

merged 2 commits into from
Sep 27, 2022

Conversation

sroy3
Copy link
Contributor

@sroy3 sroy3 commented Sep 27, 2022

Closes #2423

Screen.Recording.2022-09-27.at.3.18.00.PM.mov

Since onDragEnd is being called only half the time, there is now a failsafe on mouse move. If the mouse moves with no mouse button pressed and the drag and drop state is not clean, it'll call the cleanup function to reset the state.

@sroy3 sroy3 added the bug Something isn't working label Sep 27, 2022
@sroy3 sroy3 self-assigned this Sep 27, 2022
@sroy3 sroy3 marked this pull request as ready for review September 27, 2022 19:21
@codeclimate
Copy link

codeclimate bot commented Sep 27, 2022

Code Climate has analyzed commit f76faaa and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 87.5% (85% is the threshold).

This pull request will bring the total coverage in the repository to 97.0% (0.0% change).

View more on Code Climate.

@sroy3 sroy3 merged commit 7a814bb into main Sep 27, 2022
@sroy3 sroy3 deleted the drag-drop-cleanup branch September 27, 2022 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Images table DnD: header stuck in the "dnd" state
2 participants