Fix text fragment's user scroll condition
Text fragments listen for scrolling so that they can stop trying to keep a fragment in view during load and to record metrics about users' scrolling behavior related to text fragments. However, the condition used to filter non-user scrolls is IsExplicitScrollType which includes programmtic scrolls. This is carried over from regular fragments but means our metrics above will include programmatic scrolls. This CL fixes the condition and updates tests to check all scroll types. Some tests are moved around, for ease of review PS1 makes changes to the test, PS2 is just the code move. Bug: 1097426 Change-Id: Ib86690d1af0303299edde8007786df2d81af6518 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2255779 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/master@{#781074}
Showing
This diff is collapsed.
Please register or sign in to comment