Event management and their sequence
In case of overlapping of multiple objects the events are always managed by the foreground object.
In the groups of objects (however nested) the management of the events takes place with the bubbling technique: the events are intercepted by the single elements-children and propagated to the parent-groups going up the hierarchy of objects until reaching the main group. For each object, in order, the management procedure of the event eventually defined is called.
The propagation of events that represent an action with the mouse button (pressure, continuous pressure, release, click and double-click) is interrupted to the first object encountered, going up the hierarchy, for which the management procedure has been declared.
Events sequence
The sequence of events in a double-click operation is as follows:
OnMouseDown
OnMouseUp
OnClick
OnDblClick
OnMouseUp
If a pre-wired action has been configured for the object, it is executed after handling the first OnMouseUp event.
If the mouse button is pressed while the pointer is over an animation and released after the pointer has been moved over another animation, the sequence of events is as follows:
OnMouseDown on Animation1
OnMouseUp on Animation1
OnClick on Animation1
OnMouseLeave on Animation1
OnMouseEnter on Animation2