Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feedback: fix last link was greyed out issue when scrolled to the end
On search page and confirmation page, when docked magnifier is on and when scrolled to the bottom, the last item is greyed out [1,2], although it is still clickable. Debugging found the scrollTop reading on those page was off by 0.61 px when the content was scrolled to bottom. This caused the shadowShield be still visible even though it should not be. Change the scrolling ended condition from: scrollTop + clientHeight == scrollHeight To: scrollTop + clientHeight + 1 >= scrollHeight This fixed the issue [3,4]. Screenshots: 1. Before: http://screen/B4rbfA353dvt2Dm.png. 2. Before: http://screen/7zu6srogQzJWwxk.png. 3. After: http://screen/AuXhVyT9p2yDAU5.png. 4. After: http://screen/82qc6y3GCcX4hgS.png. Bug: b:262607823, b:185624798 Test: manually tested on DUT and VM. Change-Id: Idaa43b23179d25b92d94a84ef2b898a02951194f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4112619 Commit-Queue: Xiangdong Kong <xiangdongkong@google.com> Reviewed-by: Ashley Prasad <ashleydp@google.com> Cr-Commit-Position: refs/heads/main@{#1084641}
- Loading branch information