• David Black's avatar
    Handle vertical scrolling with embedded WebViews. · db03912d
    David Black authored
    Previously, Assistant cards (WebViews) would consume any event that
    they processed. This prevented our container from scrolling effectively,
    because scroll gestures would be consumed.
    
    Now, we prevent the WebView from receiving anything other than
    mouse click related events. We need to give it those events because
    Assistant cards contain links.
    
    To also support link taps via gesture, we need to route taps back
    to the WebView's manually. We do this by converting tap gestures into
    mouse events.
    
    Bug: b:110039692
    Change-Id: Id0d44af0651490ddf58b6e0e0c70c41fec3fa654
    Reviewed-on: https://chromium-review.googlesource.com/1174961
    Commit-Queue: David Black <dmblack@google.com>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#583863}
    db03912d
assistant_container_view.h 3.13 KB