• Toni Barzic's avatar
    Better coordinate swipe to home gesture and drag handle nudge · 57098dce
    Toni Barzic authored
    Manages the drag handle nudge during window drag from shelf to home or
    overview (which may end up in a gesture the nudge is describing).
    
    If the contextual nudge is shown when the window drag starts, the nudge
    will not be hidden until the gesture completes (end it will get hidden
    when the gesture completes, even if the user does not end up going
    home).
    
    If the contextual nudge is scheduled to be shown when the gesture
    starts, the show request will be canceled.
    
    Adds logic that prevents drag handle nudge from showing up, unless it's
    a result of an explicit user action - tapping the drag handle.
    
    BUG=1058617
    
    Change-Id: I96fa2748308143ec42295dbfb472dc564da5bd03
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2107135
    Commit-Queue: Toni Baržić <tbarzic@chromium.org>
    Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#751200}
    57098dce
shelf_layout_manager.cc 100 KB