Example: Overlay events take precedence over group events
A group with a touch event may contain two graphic elements with their own touch events. A graphic element with its own touch event lies on top of the group. Touching a graphic element not under the overlay element triggers the event of the group and the event of the graphic element. Pressing a graphic element under the overlay element triggers only the event of the overlay element.
In this example, there is an event associated with the group. The two buttons in the group each have a unique event associated with them. There is also an event associated with an overlay element.

Press Event | Triggered action |
![]() | Press here to trigger the event associated with the group. |
![]() | Press here to trigger the event associated with the group and then trigger the event associated with Button A. |
![]() | Press here to trigger the event associated with the rectangle overlay. |
Provide Feedback