Skip to content

Commit

Permalink
chore: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Nov 19, 2024
1 parent d974132 commit a73a88b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_UIElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
using Windows.UI;
using Windows.ApplicationModel.Appointments;
using Microsoft.UI.Xaml.Hosting;
using Uno.UI.Helpers.Xaml;
using Uno.UI.Toolkit.Extensions;

#if __IOS__
Expand Down Expand Up @@ -1718,16 +1717,15 @@ public async Task When_DragDrop_AcceptedOperation_None(bool setAcceptedOperation
Height = 100,
Fill = new SolidColorBrush(Microsoft.UI.Colors.LightCoral),
AllowDrop = true
}.GenericApply(rect =>
{
rect.Drop += (_, _) => dropCount++;
if (setAcceptedOperation)
{
rect.DragOver += (_, e) => e.AcceptedOperation = DataPackageOperation.Copy;
}
}))
})
};

target.Drop += (_, _) => dropCount++;
if (setAcceptedOperation)
{
target.DragOver += (_, e) => e.AcceptedOperation = DataPackageOperation.Copy;
}

await UITestHelper.Load(sp);

mouse.MoveTo(source.GetAbsoluteBoundsRect().GetCenter());
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/DragDrop/DragDropExtension.macOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void OnDraggingExited(NSDraggingInfo draggingInfo)

private bool OnPerformDragOperation(NSDraggingInfo draggingInfo)
{
var operation = _manager.ProcessDropped(new DragEventSource(_fakePointerId, draggingInfo, _window));
var operation = _manager.ProcessReleased(new DragEventSource(_fakePointerId, draggingInfo, _window));
return (operation != DataPackageOperation.None);
}

Expand Down

0 comments on commit a73a88b

Please sign in to comment.