desks: Add edge padding for continuous gesture swipe.
Increase the animation layer on each side by a ratio of the root window width. When swiping, users can see this padding if they swipe towards a direction with no more desks (i.e. swipe right at desk 0). Clamps the translation such that the entire animation layer is always visible. Tested that the edge padding does not affect non continuous gestures. Though not seen, the edge padding is there for simplification. Can be easily modified if desired in the future. Test: manual Bug: 1111445 Change-Id: I3b204d8ef1e1648b421310e1aa714346a94959aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2417491 Commit-Queue: Sammie Quon <sammiequon@chromium.org> Reviewed-by:Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#809423}
Showing
Please register or sign in to comment