Example: Group events trigger before graphic element events

When a group with a touch event contains graphic elements with their own touch events, touching the group triggers the event of the group. Pressing a graphic element in the group triggers the event of the group, and the event of the graphic element. An overlay element that does not have an event does not affect triggered events.
In this example, there is an event associated with the group consisting of Button A and Button B, an event associated with Button A, and an event associated with Button B positioned partially over Button A. There is no event associated with the rectangle overlay.
ViewDesEventExample4
Press Event
Triggered action
1
Press here to trigger the event associated with the group and then trigger the event associated with Button A.
2
Press here to trigger the event associated with the group and then trigger the event associated with Button B.
3
Press here to trigger the event associated with the group and then trigger the event associated with Button B.
4
Press here to trigger the event associated with the group.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal