|
@@ -8,10 +8,11 @@ namespace Avalonia.Win32
|
|
{
|
|
{
|
|
class DragSource : IPlatformDragSource
|
|
class DragSource : IPlatformDragSource
|
|
{
|
|
{
|
|
- public Task<DragDropEffects> DoDragDrop(IDataObject data, DragDropEffects allowedEffects)
|
|
|
|
|
|
+ public Task<DragDropEffects> DoDragDrop(PointerEventArgs triggerEvent,
|
|
|
|
+ IDataObject data, DragDropEffects allowedEffects)
|
|
{
|
|
{
|
|
Dispatcher.UIThread.VerifyAccess();
|
|
Dispatcher.UIThread.VerifyAccess();
|
|
-
|
|
|
|
|
|
+ triggerEvent.Pointer.Capture(null);
|
|
OleDragSource src = new OleDragSource();
|
|
OleDragSource src = new OleDragSource();
|
|
DataObject dataObject = new DataObject(data);
|
|
DataObject dataObject = new DataObject(data);
|
|
int allowed = (int)OleDropTarget.ConvertDropEffect(allowedEffects);
|
|
int allowed = (int)OleDropTarget.ConvertDropEffect(allowedEffects);
|