Skip to content

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

Closed
@AnastassiaP

Description

@AnastassiaP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions