Since DragEvent's GetPosition return new Vector2 class internally, we should keep the positoin with memory ownership.
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
DragType type = (DragType)Interop.DragAndDrop.GetAction(dragEvent);
DragEvent ev = new DragEvent();
global::System.IntPtr cPtr = Interop.DragAndDrop.GetPosition(dragEvent);
- ev.Position = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
+ ev.Position = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, true);
if (type == DragType.Enter)
{