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 218d6f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 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
4 changes: 2 additions & 2 deletions 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 All @@ -88,7 +88,7 @@ public void StartNativeDrag(CoreDragInfo info)
(NSImage image, CGPoint screenPoint, NSDragOperation operation) =>
{
// The drop was completed externally
_manager.ProcessDropped(new DragEventSource(info.SourceId, _window));
_manager.ProcessReleased(new DragEventSource(info.SourceId, _window));
return;
};

Expand Down

0 comments on commit 218d6f9

Please sign in to comment.