2021-04-23 22:35:37 +03:00
|
|
|
/**
|
2021-06-14 18:58:07 +03:00
|
|
|
* Propagation action.
|
2021-04-23 22:35:37 +03:00
|
|
|
*
|
2021-06-14 18:58:07 +03:00
|
|
|
* `Stop`: Stop the propagation of the event through any handler groups
|
|
|
|
* in the current dispatcher. Does not prevent child dispatchers from
|
|
|
|
* being executed.
|
2021-04-23 22:35:37 +03:00
|
|
|
*
|
2021-06-14 18:58:07 +03:00
|
|
|
* `StopChildren`: Stop the propagation of the event through any handler groups
|
|
|
|
* in the current dispatcher, and any of its children. If current dispatcher
|
|
|
|
* is a child, does not prevent from propagating to its siblings.
|
|
|
|
*
|
|
|
|
* `Continue`: Continue propagating the event inside the same handler group.
|
|
|
|
*
|
|
|
|
* `ToScene`: Used after using `state.enter()` to dispatch the update to the scene
|
2021-04-23 22:35:37 +03:00
|
|
|
*/
|
2021-06-14 18:58:07 +03:00
|
|
|
export enum PropagationAction {
|
|
|
|
Stop = 'stop',
|
|
|
|
StopChildren = 'stop-children',
|
|
|
|
Continue = 'continue',
|
|
|
|
ToScene = 'scene'
|
|
|
|
}
|