Add scoped overlay hosts
This commit is contained in:
1 parent
b53a17c436
commit
599d33287c
24 files changed
+910
-60
No files matched your search
@@ -11,10 +11,9 @@ pub(crate) fn on_tap<Rsc: HasEvents>(
|
||||
ptr.on(CursorSense::drag_senses(), move |ctx, rsc: &mut Rsc| {
|
||||
let input = &ctx.data;
|
||||
let outcome = rsc
|
||||
.with_nearest_controller::<SelectionController, _>(
|
||||
list,
|
||||
|id, selection, rsc| selection.drag(id, rsc, input),
|
||||
)
|
||||
.with_nearest_controller::<SelectionController, _>(list, |id, selection, rsc| {
|
||||
selection.drag(id, rsc, input)
|
||||
})
|
||||
.unwrap_or(SelectionInput::Tapped);
|
||||
if outcome == SelectionInput::Tapped {
|
||||
f(rsc);
|
||||
|
||||
Reference in new issue
Block a user