eventPhase property

num eventPhase

Indicates which phase of the Event flow is currently being evaluated.

Possible values:

Event.CAPTURING_PHASE (1) - The Event is being propagated through the target's ancestor objects. This process starts with the Window, then HtmlDocument, then the HtmlHtmlElement, and so on through the Elements until the target's parent is reached. Event listeners registered for capture mode when

EventTarget.addEventListener was called are triggered during this phase.

Event.AT_TARGET (2) - The Event has arrived at the target. Event listeners registered for this phase are called at this time. If bubbles is false, processing the Event is finished after this phase is complete.

Event.BUBBLING_PHASE (3) - The Event is propagating back up through the target's ancestors in reverse order, starting with the parent, and eventually reaching the containing Window. This is known as bubbling, and occurs only if bubbles is true. Event listeners registered for this phase are triggered during this process.

See: developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase

Implementation

external num get eventPhase;