Browse Source
BeginMoveDrag on macOS drags from the Avalonia view's last recorded mouse-down. A press that begins inside an embedded native view (for example a webview hosted through NativeControlHost) is consumed by that view and never delivered to the Avalonia view, so lastMouseDownEvent is nil and BeginMoveDrag silently does nothing - applications embedding native views cannot implement custom title-bar dragging through the managed API and must reproduce performWindowDragWithEvent: through platform interop. When no mouse-down was recorded, fall back to the event the application is currently tracking, guarded to left-button press or drag events that belong to this window. Presses recorded by the Avalonia view behave exactly as before.pull/21852/head
committed by
GitHub
1 changed files with 15 additions and 0 deletions
Loading…
Reference in new issue