Skip to content

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
@github-actions
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.

3 participants