• Chris Bracken's avatar
    Dispatch hover events to PlatformViewController (#46124) · fa0c49d7
    Chris Bracken authored
    This adds support to PlatformViewLayer for handling hover events. Prior
    to this, PlatformViewLayers only supported events forwarded by the
    gesture recognizers associated with the PlatformViewRenderBox. Hover
    events don't participate in gesture recognition and as such are dropped
    in GestureBinding. That said, hover event processing in platform views
    is expected for desktop and other platforms with hover event support.
    
    This adds support for passing an optional MouseTrackerAnnotation to
    PlatformViewLayer. PlatformViewRenderBox populates this with a mouse
    tracker annotation that forwards hover events to
    PlatformViewController.dispatchPointerEvent() for handling by users.
    fa0c49d7
platform_view.dart 30.3 KB