mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Before this change, when starting a mouse drag from a nested view such as a webview, JUCE was unable to automatically determine which component is associated with the drag. Instead of relying on automatic detection, users can pass the "sourceComponent" argument when initiating a drag to specify the parent view that should receive associated drag events. However, previously the sourceComponent was only used to find the view associated with the mouse-down, but not the mouse-up. Automatic detection was always used for the mouse-up, but this could fail in the case of a drag started from a nested view. Now, the drag event source will store a weak reference to the source component provided by the user, and use the same component for both mouse-down and mouse-up events. |
||
|---|---|---|
| .. | ||
| accessibility | ||
| application | ||
| buttons | ||
| commands | ||
| components | ||
| desktop | ||
| detail | ||
| drawables | ||
| filebrowser | ||
| keyboard | ||
| layout | ||
| lookandfeel | ||
| menus | ||
| misc | ||
| mouse | ||
| native | ||
| positioning | ||
| properties | ||
| widgets | ||
| windows | ||
| juce_gui_basics.cpp | ||
| juce_gui_basics.h | ||
| juce_gui_basics.mm | ||