We should implement snapping for keyboard scrolling.
The specification has some guideline on how to categorize various input and keyboard scrolling can fall in all three categories [1]
- homing operations such as the Home/End keys: intended end position
- paging operations such as the PgUp/PgDn keys: intended direction and end position
- pressing an arrow key on the keyboard: intended direction
There is also tab related focus changes but I think we should consider that
under a different issue.
All above cases go through ScrollManager::BubblingScroll with a different
granularity and direction. So that may be a good place to start.
[1] https://drafts.csswg.org/css-scroll-snap/#scroll-types
Comment 1 by sunyunjia@chromium.org
, May 4 2018