commit | e1d356456d126a727324c4450b75bfa5ca4aab8b | [log] [tgz] |
---|---|---|
author | Chu-Hsuan Yang <chuhsuan@chromium.org> | Fri Jun 28 04:11:26 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 28 04:11:26 2024 |
tree | 65c62e18c823300a50acd7ed508d0962af6ee4d0 | |
parent | 80853032fee2a4b6551fd339e09b5579439820c3 [diff] |
CCA: Fix camera view shift when clicking mode selector For some reasons, `document.body.scrollWidth` sometimes becomes larger than the viewport's width when resizing the window of CCA. When this happens, clicking on right most mode in the mode selector, which calls `scrollIntoView({inline: 'center', behavior: 'smooth'})` will shift the entire camera view to the left. This CL removes `inline: 'center'` (default is 'nearest') to avoid this shift. Test: Clicking on right most mode won't trigger view shift after resizing window. Bug: b:349301801 Change-Id: Idcf8de20fe959e7bc4c18b861ee9f425655243cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5657092 Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org> Commit-Queue: Chu-Hsuan Yang <chuhsuan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1320791}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.