We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62b110 commit 009eb63Copy full SHA for 009eb63
1 file changed
Source/Components/ObjectDragAndDrop.h
@@ -147,12 +147,11 @@ class ObjectDragAndDrop final : public Component
147
setCentrePosition(screenPos);
148
149
auto mms = Desktop::getInstance().getMainMouseSource();
150
- auto* draggedComponent = mms.getComponentUnderMouse();
151
- if(draggedComponent)
+ if(auto* draggedComponent = mms.getComponentUnderMouse())
152
{
153
draggedComponent->setMouseCursor(MouseCursor::StandardCursorType::DraggingHandCursor);
154
}
155
- if(draggedComponent == this && startedWithDrag && !mms.isDragging())
+ if(startedWithDrag && !mms.isDragging())
156
157
paste(mms.getScreenPosition().roundToInt());
158
0 commit comments