[PaymentHandler] Full state: swiping down content should move page
Context: this CL is to fix an bug where a swipe on the context caused inconsistent behaviours between swipe up and swipe down. While swipe up causes a page to scroll up, swipe down causes the UI to move down. Cause: PH UI is incorrectly configured so that BottomSheet mistakes the sheet as being at the max position. Before change: at full state, when the viewport of the Web View moves to the mid page, swiping down the Web View moves down the UI. Change: config getVerticalScrollOffset() as Preview Tab does. After change: at the same situation, swiping down the Web View scrolls up the content. Bug: 1040651 Change-Id: I4ac3ca369be0f2459d80df8fdfb093cc1b9f57c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2008274Reviewed-by:Danyao Wang <danyao@chromium.org> Commit-Queue: Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#733838}
Showing
Please register or sign in to comment