• Sammie Quon's avatar
    desks: Make it easier to quickly swipe to desks. · ac61ca2b
    Sammie Quon authored
    This patch tries to different between users who want to use the trackpad
    to quickly switch desks and users who use the trackpad to look at the
    contents of adjacent desks.
    
    For the former, we introduce a threshold of 500ms. If the user ends
    their swipe within 500ms, we will move them to the next desk if the
    next desk is more than 10% visible.
    
    For the latter, we keep the old logic of moving them to the desk
    which is most visible when the swipe ends.
    
    Also lowers the threshold when starting a swipe. We had some feedback
    that this was too high.
    
    Bug: 1158065, 1158067
    Test: manual, added tests
    Change-Id: I9feb8f8a8f591227f883d58bfe9c38b1653f7fa4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617044
    Commit-Queue: Sammie Quon <sammiequon@chromium.org>
    Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#842891}
    ac61ca2b
desk_animation_impl.cc 13.7 KB