Skip to content

Commit

Permalink
change mouse down logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-h-linea committed Nov 25, 2024
1 parent fe654a7 commit ef5f1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GongSolutions.WPF.DragDrop/DragDrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ private static void OnRealTargetDragLeave(object sender, DragEventArgs e)

private static void DropTargetOnDragEnter(object sender, DragEventArgs e)
{
if (e.KeyStates.HasFlag(DragDropKeyStates.LeftMouseButton))
if (e.KeyStates.HasFlag(DragDropKeyStates.LeftMouseButton)
!= e.KeyStates.HasFlag(DragDropKeyStates.RightMouseButton))
{
DropTargetOnDragOver(sender, e, EventType.Bubbled, GetIsDragLeaved(sender as DependencyObject));
}
Expand Down

0 comments on commit ef5f1d9

Please sign in to comment.