UI events follow the engine's event system, with the additional support for event bubbling in UI components.
The current version only supports the following bubbling flow:
| Interface | Bubbles |
|---|---|
| onPointerEnter | Does not bubble |
| onPointerExit | Does not bubble |
| onPointerDown | Bubbles |
| onPointerUp | Bubbles |
| onPointerClick | Bubbles |
| onPointerBeginDrag | Bubbles |
| onPointerDrag | Bubbles |
| onPointerEndDrag | Bubbles |
| onPointerDrop | Bubbles |
As shown in the diagram below, if node C triggers the pointerup event, the event will bubble along the path C --> B --> A --> RootCanvas.