目录

How do I customize event transfer between parent and child components to, for example, resolve scrolling conflicts?

1. When processing a touch event, the system conducts hit testing—from the parent component to its children—to determine the component that needs to respond to the event. Subsequent gesture recognition and competition are performed based on the hit testing result.

2. You can set the hitTestBehavior attribute to specify how a component behaves during hit testing.

3. You can achieve further intervention on gesture recognition and competition results with custom events and custom gesture judgment.

Reference

Hit Test Control, Custom Event Dispatch, Custom Gesture Judgment