From c5cde62cecfdd413e9902b26b30b0d4dfd05a24d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 14 Mar 2019 13:25:32 +0200 Subject: Machine Studio v4.0.10 PPC v1.0.9 --- Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs') diff --git a/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs b/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs index 586071363..8833feff8 100644 --- a/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs +++ b/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs @@ -730,6 +730,7 @@ namespace Tango.DragAndDrop if ((e.Source != sender && dragThumb == null) || (dragThumb != null && dragThumb != e.OriginalSource)) { + _currentDragedElement = null; return; } @@ -759,10 +760,10 @@ namespace Tango.DragAndDrop { FrameworkElement element = _currentDragedElement; - int minDragOffset = GetMinDragOffset(element); - if (element != null) { + int minDragOffset = GetMinDragOffset(element); + var surface = GetDraggingSurface(element); if (surface != null) -- cgit v1.3.1