• Sean Topping's avatar
    [Chromecast] Send gestures to Root UI after several attempts · 65983c94
    Sean Topping authored
    In some cases, the main gesture handler might permanently have priority,
    and lower priority handlers (such as the root UI) will never receive a
    gesture until that handler is removed. This change ensures that if a
    user attempts multiple gestures in quick succession, that the root UI
    will receive the gesture instead. This mitigates buggy gesture handling
    logic and prevents the UI from being permanently stuck.
    
          then try to swipe several times in succession. Eventually the root
          UI should handle the swipe.
    
    Bug: internal b/112338841
    Test: Run an app which is permanently able to handle gesture events,
    Change-Id: I741e041feba56b5e87ad8cb3ca5e1f564f48518b
    Reviewed-on: https://chromium-review.googlesource.com/1199967
    Commit-Queue: Sean Topping <seantopping@chromium.org>
    Reviewed-by: default avatarLuke Halliwell <halliwell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589002}
    65983c94
cast_system_gesture_dispatcher.cc 3.66 KB