mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
A semantic node may be tappable without having a more concrete role set on it, such as "button". It will just have a tap handler. This could lead to the sized span to be chosen as the label representation. However, when pointer events land on the span the DOM `target` becomes the span rather than the tappable element, and that breaks the debouncing logic in `pointer_binding.dart`. This PR removes pointer event handling from inert text spans. This fixes the click debounce logic. Fixes https://github.com/flutter/flutter/issues/151265