mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Fixed the position of the drag image when dragging listboxes. Minor fix for mac graphics contexts, and win32 webcam latency adjustment.
This commit is contained in:
parent
9000fc6604
commit
df5f73910b
7 changed files with 149 additions and 92 deletions
|
|
@ -200,23 +200,7 @@ public:
|
|||
if (dragDescription.isNotEmpty())
|
||||
{
|
||||
isDragging = true;
|
||||
|
||||
DragAndDropContainer* const dragContainer
|
||||
= DragAndDropContainer::findParentDragContainerFor (this);
|
||||
|
||||
if (dragContainer != 0)
|
||||
{
|
||||
Image* dragImage = owner.createSnapshotOfSelectedRows();
|
||||
dragImage->multiplyAllAlphas (0.6f);
|
||||
|
||||
dragContainer->startDragging (dragDescription, &owner, dragImage, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
// to be able to do a drag-and-drop operation, the listbox needs to
|
||||
// be inside a component which is also a DragAndDropContainer.
|
||||
jassertfalse
|
||||
}
|
||||
owner.startDragAndDrop (e, dragDescription);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue