Snap after pressing PgUp/PgDn and Home/End
This patch implements snapping after pressing PgUp/PgDn and Home/End keys. The logic is implemented in ScrollManager::LogicalScroll(). These keys are different from arrow keys. Pressing the arrow key is considered as scrolling with intended direction only. Pressing the PgUp/PgDn is considered as scrolling with intended direction and end position. Pressing the Home/End key is considered as scrolling with intended end position only. So we need to use different strategies to snap for these keys. Bug: 821928 Change-Id: If4d04ff58214a3304d09838f321e65c6e68f7d1d Reviewed-on: https://chromium-review.googlesource.com/c/1361648Reviewed-by:David Bokan <bokan@chromium.org> Reviewed-by:
Majid Valipour <majidvp@chromium.org> Commit-Queue: Sandra Sun <sunyunjia@chromium.org> Cr-Commit-Position: refs/heads/master@{#616062}
Showing
Please register or sign in to comment