Skip to main content

holds_pointer

Function holds_pointer 

pub fn holds_pointer(child: &dyn Widget) -> bool
Expand description

Whether child holds the pointer for its subtree: it latched a drag, or a menu or modal is open somewhere in it. A container that hands input to its children asks this before routing by place, so a press over an open menu reaches the menu wherever the container stands and whichever sibling lies under it.