| commit | 687a3b4cdcbd6c3850e06868d9aaaca6e1b83df3 | [log] [tgz] |
|---|---|---|
| author | Mario Bianucci <[email protected]> | Wed Jun 05 18:11:48 2019 |
| committer | Commit Bot <[email protected]> | Wed Jun 05 18:11:48 2019 |
| tree | 5880b1891060fbcc7d11de3004d4d557b3dbe63f | |
| parent | 9e6b9549664c2f3c192d2f1a0994ecc0c9d4a506 [diff] |
Show cursors only for available scrolling directions when autoscrolling This change adds two new cursors for auto scrolling, one that shows only vertical directions, and the other that shows only horizontal. (This has the unfortunate side effect of causing cascading small changes to many files, sorry!) These new cursors are then used in autoscrolling so that when a user is on a page that can only scroll vertically, if they middle click it will then show an autoscroll cursor that reflects the available directions, i.e. up and down only. Similar results for horizontal scrolling only pages. This change caches the directions available to scroll when the middle mouse button is clicked and uses those to determine which cursors to show when handling mouse move events. This unfortunately means that if a user middle clicks somewhere that can only scroll vertically, and later that changes to being able to scroll horizontally exclusively without user input, the cursor will still only show vertical directions. However, this matches what Firefox and non-Chromium-based Edge do right now, so this seems fine to me. A file up bug to fix this issue should be filed though. Bug: 11437 Change-Id: I68e083d1e0b9e14071f67f9268e826a40cebd783 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1638924 Reviewed-by: David Bokan <[email protected]> Reviewed-by: Bill Budge <[email protected]> Reviewed-by: Sadrul Chowdhury <[email protected]> Reviewed-by: Bret Sepulveda <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Mario Bianucci <[email protected]> Cr-Commit-Position: refs/heads/master@{#666361}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .