Skip to content

Commit 009eb63

Browse files
committed
Fix automation drag-and-drop broken in DAW
1 parent b62b110 commit 009eb63

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Source/Components/ObjectDragAndDrop.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,11 @@ class ObjectDragAndDrop final : public Component
147147
setCentrePosition(screenPos);
148148

149149
auto mms = Desktop::getInstance().getMainMouseSource();
150-
auto* draggedComponent = mms.getComponentUnderMouse();
151-
if(draggedComponent)
150+
if(auto* draggedComponent = mms.getComponentUnderMouse())
152151
{
153152
draggedComponent->setMouseCursor(MouseCursor::StandardCursorType::DraggingHandCursor);
154153
}
155-
if(draggedComponent == this && startedWithDrag && !mms.isDragging())
154+
if(startedWithDrag && !mms.isDragging())
156155
{
157156
paste(mms.getScreenPosition().roundToInt());
158157
}

0 commit comments

Comments
 (0)