Skip to main content

dispatch_path

Function dispatch_path 

Source
pub fn dispatch_path(target: i64, event: &str) -> DispatchPath
Expand description

The walk event dispatched at target takes, as a browser dispatches it: the capture-phase listeners of the target’s ancestors from the root down, the target itself, then — when the event bubbles (event_bubbles) — the other ancestors’ listeners from the target back up. A listener registered .stop ends the walk after it. The target is always on the walk: whether anything there answers is the page’s own dispatcher’s to say.