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

Fix drag-and-drop termination condition bug #5452

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

abey79
Copy link
Collaborator

@abey79 abey79 commented Dec 9, 2024

I introduced this in #5433.

TL;DR: there are two termination conditions for drag-and-drop operations:

  • ESC
  • release mouse

The former must happen at frame start (to properly capture the keystroke). The latter must happen at end-of-frame (to not shadow the mouse release event from user code).

This is now properly documented.

@abey79 abey79 added bug Something is broken egui labels Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

Preview available at https://egui-pr-preview.github.io/pr/5452-antoine/fix-drag-and-drop
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk emilk merged commit 13352d6 into master Dec 9, 2024
48 of 49 checks passed
@emilk emilk deleted the antoine/fix-drag-and-drop branch December 9, 2024 11:12
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.

2 participants