desks: Make it easier to quickly swipe to desks.
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:Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#842891}
Showing
Please register or sign in to comment