-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Treat Event::PointerGone
as PointerEvent::Released
#4419
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drag_stopped_by()
not detected after mouse release.drag_stopped_by()
not detected after mouse release.
drag_stopped_by()
not detected after mouse release.PointerButton
.
PointerButton
.Event::PointerGone
occurs, it is treated as PointerEvent::Released
.
emilk
approved these changes
May 10, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, but please revert unrelated changea
Comment on lines
459
to
464
let button_suffix = if button == egui::PointerButton::Primary { | ||
// Reduce visual clutter in common case: | ||
String::default() | ||
} else { | ||
format!(" by {button:?} button") | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert
emilk
approved these changes
May 11, 2024
Event::PointerGone
occurs, it is treated as PointerEvent::Released
.Event::PointerGone
as PointerEvent::Released
emilk
added a commit
that referenced
this pull request
May 22, 2024
* Closes #3157 If the mouse leaves the canvas when dragging a slider, the slider will still move. --- To support this, I had to revert #4419 Despite that, I fail to reproduce the two issues it claimed to solve: * #4406 may have been solved in another way by this PR * #4418 I cannot reproduce on Mac. If it is still a problem, I think it should be solved by triggering a `PointerEvent::Released` when focus is lost (i.e. on alt-tab), and not on `PointerGone`
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
* Closes emilk#4406 * Closes emilk#4418 If `Event::PointerGone` occurs, it is treated as `PointerEvent::Released`.
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
* Closes emilk#3157 If the mouse leaves the canvas when dragging a slider, the slider will still move. --- To support this, I had to revert emilk#4419 Despite that, I fail to reproduce the two issues it claimed to solve: * emilk#4406 may have been solved in another way by this PR * emilk#4418 I cannot reproduce on Mac. If it is still a problem, I think it should be solved by triggering a `PointerEvent::Released` when focus is lost (i.e. on alt-tab), and not on `PointerGone`
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If
Event::PointerGone
occurs, it is treated asPointerEvent::Released
.