Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SuicSoft committed Dec 2, 2015
1 parent 1e4ca99 commit 169a225
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GongSolutions.Wpf.DragDrop/DragDrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,12 @@ private static void DragSource_PreviewMouseMove(object sender, MouseEventArgs e)
m_DragInProgress = true;
var result = System.Windows.DragDrop.DoDragDrop(m_DragInfo.VisualSource, data, m_DragInfo.Effects);
if (result == DragDropEffects.None)
dragHandler.DragCancelled();
{
try{
dragHandler.DragCancelled();
}
catch (System.Runtime.InteropServices.COMException e){}
}
}
finally {
m_DragInProgress = false;
Expand Down

0 comments on commit 169a225

Please sign in to comment.