Update hover when scroll snap happens at the snap point
For the case that the snap point is the same as the scroll position, we set the snap_at_gesture_scroll_end flag to be true, but there is no scroll snap animation happen, We pass a callback of setting hover state dirty to snap function, and when the snap point is the same as the scroll position, the callback will be executed to update the hover state right away. Majid's CL to change SnapCoordinator::PerformSnapping to return true when the snap point is the same as the scroll position: https://chromium-review.googlesource.com/c/chromium/src/+/1769044 Bug: 877132 Change-Id: I4cfc1bf03ee980b4b68e74aad79a8bec6a906da1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1790259 Commit-Queue: Lan Wei <lanwei@chromium.org> Reviewed-by:Navid Zolghadr <nzolghadr@chromium.org> Reviewed-by:
Majid Valipour <majidvp@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#707990}
Showing
Please register or sign in to comment