@@ -2223,11 +2223,11 @@ impl Ui {
2223
2223
///
2224
2224
/// The given frame is used for its margins, but it color is ignored.
2225
2225
#[ doc( alias = "drag and drop" ) ]
2226
- pub fn dnd_drop_zone < Payload > (
2226
+ pub fn dnd_drop_zone < Payload , R > (
2227
2227
& mut self ,
2228
2228
frame : Frame ,
2229
- add_contents : impl FnOnce ( & mut Ui ) ,
2230
- ) -> ( Response , Option < Arc < Payload > > )
2229
+ add_contents : impl FnOnce ( & mut Ui ) -> R ,
2230
+ ) -> ( InnerResponse < R > , Option < Arc < Payload > > )
2231
2231
where
2232
2232
Payload : Any + Send + Sync ,
2233
2233
{
@@ -2236,7 +2236,7 @@ impl Ui {
2236
2236
DragAndDrop :: has_payload_of_type :: < Payload > ( self . ctx ( ) ) ;
2237
2237
2238
2238
let mut frame = frame. begin ( self ) ;
2239
- add_contents ( & mut frame. content_ui ) ;
2239
+ let inner = add_contents ( & mut frame. content_ui ) ;
2240
2240
let response = frame. allocate_space ( self ) ;
2241
2241
2242
2242
// NOTE: we use `response.contains_pointer` here instead of `hovered`, because
@@ -2266,7 +2266,7 @@ impl Ui {
2266
2266
2267
2267
let payload = response. dnd_release_payload :: < Payload > ( ) ;
2268
2268
2269
- ( response, payload)
2269
+ ( InnerResponse { inner , response } , payload)
2270
2270
}
2271
2271
2272
2272
/// Close the menu we are in (including submenus), if any.
0 commit comments