Expand interaction gutters for scrollbars
There is a gutter rect around the scrollbar during which thumb drags will behave as though the mouse is on the thumb even if it moves off the thumb but is still inside the gutter rect. If the mouse moves outside of that gutter rect, the thumb snaps back to its original position. This behavior offers users the ability to quickly toggle between two positions in a scroller by intentionally moving the thumb in the non-scrolling direction in and out of the gutter. However, it also can frustrate users if they grabbed the scrollbar thumb and dragged in the scrolling direction but unintentionally move outside of the gutter causing the thumb to snap back. This change modifies the behavior so that scrollbars have an infinitely large interaction gutter rect in the scrolling direction. Bug: 801188 Change-Id: I838741053305122adf5b81345eb56d87916edd0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1566027 Commit-Queue: Sam Fortiner <samfort@microsoft.com> Reviewed-by:David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#652399}
Showing
Please register or sign in to comment