[iOS] Ignore pixel alignments when updating the MainContentUIState.
UIScrollView does not send a |-didEndDecelerating| to its delegate after pixel alignments, so the MainContentUIState should not be considered decelerating if the target contentOffset is less than a pixel away from the current value. This will correctly update the MainContentUIState's |scrolling| property to NO, allowing the FullscreenScrollEndAnimator to start. Bug: 800757 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: I4407bf34c4a6c5cb485bba01528c34cf9e86c156 Reviewed-on: https://chromium-review.googlesource.com/922888Reviewed-by:Justin Cohen <justincohen@chromium.org> Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#537382}
Showing
Please register or sign in to comment