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

Last pointer position is not updated on MacOs while dragging event #18104

Closed
AnastassiaP opened this issue Feb 3, 2025 · 1 comment · Fixed by #18069
Closed

Last pointer position is not updated on MacOs while dragging event #18104

AnastassiaP opened this issue Feb 3, 2025 · 1 comment · Fixed by #18069
Labels

Comments

@AnastassiaP
Copy link
Contributor

Describe the bug

If you want to open flyout menu at the position where item was dropped after dragging using menuFlyout.Placement = PlacementMode.Pointer, currently, it opens it on a position where item was taken, not dropped, because last pointer position was not updated while dragging on MacOs.
I found out that to happens due to MouseMove is not captured on Mac while dragging

To Reproduce

  1. Make a function that creates flyout menu with the menuFlyout.Placement = PlacementMode.Pointer
  2. Call this function at the item drop event to open menu flyout there
  3. Menu flyout is created where item was started to be dragged instead

Expected behavior

MenyFlyout is created where it was dropped

Avalonia version

11.2.0

OS

No response

Additional context

No response

@AnastassiaP AnastassiaP added the bug label Feb 3, 2025
grokys added a commit that referenced this issue Feb 5, 2025
@grokys
Copy link
Member

grokys commented Feb 5, 2025

Added a repro for the issue: a160265

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 a pull request may close this issue.

2 participants