ToolbarSwipeHandler now uses more restricted gestures
Swipes left and right on the toolbar are very easily triggered in the ToolbarSwipeHandler. This causes an issue for the bottom sheet when it is using the velocity swipe model; the page would shudder because the toolbar swipe layout would be triggered. This change only detects directional swipes if the initial direction is within 25 degrees or left, right, or down. This makes accidentally triggering a different layout more difficult. BUG=779615 Change-Id: Ied417f3e71e79431168410d4e305fa29a2f57b9b Reviewed-on: https://chromium-review.googlesource.com/772830 Commit-Queue: Matthew Jones <mdjones@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/master@{#517165}
Showing
Please register or sign in to comment